Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

判断提交的代码时提示函数受限 #105

Open
cilinf opened this issue Nov 13, 2023 · 7 comments
Open

判断提交的代码时提示函数受限 #105

cilinf opened this issue Nov 13, 2023 · 7 comments

Comments

@cilinf
Copy link

cilinf commented Nov 13, 2023

沙箱和Moodle都安装后,测试时发现,评判提交的代码会一直出现函数受限

@ndrwnaguib
Copy link
Collaborator

Does your question translate as follows?

After both sandbox and Moodle were installed, it was found during testing that the code submitted by the judges would always have limited functions.

I believe you are getting the status Restricted Function on all programs?

@cilinf
Copy link
Author

cilinf commented Nov 15, 2023

Yes.

@ndrwnaguib
Copy link
Collaborator

Typically, the reason is that the target program is not statically linked. When creating an assignment, there should be an option "Link Static Libraries". Did you choose to enable it?

@cilinf
Copy link
Author

cilinf commented Nov 17, 2023

I've tried that, but it doesn't work

@ndrwnaguib
Copy link
Collaborator

ndrwnaguib commented Nov 20, 2023

The judge should print the compilation command before executing it, could you add it here?

@cilinf
Copy link
Author

cilinf commented Dec 2, 2023

Compiling instructions is correct
屏幕截图(7)

@cilinf
Copy link
Author

cilinf commented Dec 2, 2023

Also, when I installed the sandbox and executed the make command, it got error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants