You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Linux小白求助,使用Ubuntu 20.4,安装后,在root用户下,控制台运行。然后用postman发送如下请求:
{ "cmd": [ { "args": [ "/usr/bin/g++", "a.cc", "-o", "a" ], "env": [ "PATH=/usr/bin:/bin" ], "files": [ { "content": "" }, { "name": "stdout", "max": 10240 }, { "name": "stderr", "max": 10240 } ], "cpuLimit": 10000000000, "memoryLimit": 104857600, "procLimit": 50, "copyIn": { "a.cc": { "content": "#include <iostream>\nusing namespace std;\nint main() {\nint a, b;\ncin >> a >> b;\ncout << a + b << endl;\n}" } }, "copyOut": [ "stdout", "stderr" ], "copyOutCached": [ "a.cc", "a" ], "copyOutDir": "1" } ] }
返回错误结果:
[ { "status": "Internal Error", "exitStatus": 0, "error": "execve: cgroup failed to set memory limit open /sys/fs/cgroup/executor_server/230144310/memory.max: permission denied", "time": 0, "memory": 0, "runTime": 0, "files": { "stderr": "", "stdout": "" }, "fileIds": { "a.cc": "D4DRDGIY" }, "fileError": [ { "name": "a", "type": "CopyOutOpen", "message": "open a: no such file or directory" } ] } ]
Beta Was this translation helpful? Give feedback.
All reactions