mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 00:11:41 +00:00
fix typo
This commit is contained in:
parent
238eb4ab17
commit
656c04f35a
2
judger.c
2
judger.c
@ -112,7 +112,7 @@ static PyObject *judger_run(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
}
|
||||
|
||||
if(config.use_nobody && getuid() != 0) {
|
||||
PyErr_SetString(PyExc_ValueError, "root use is required when using nobody");
|
||||
PyErr_SetString(PyExc_ValueError, "root user is required when using nobody");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1,15 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
// 150m
|
||||
int big_size = 150 * 1024 * 1024;
|
||||
|
||||
int *b = NULL;
|
||||
|
||||
b = (int *)malloc(big_size);
|
||||
memset(b, 0, big_size);
|
||||
return 0;
|
||||
}
|
@ -1 +0,0 @@
|
||||
{"language": "c", "max_cpu_time": 300, "max_memory": 100000000}
|
@ -1 +0,0 @@
|
||||
{"flag": 3, "signal": 0}
|
@ -1,15 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
// 150m
|
||||
int big_size = 150 * 1024 * 1024;
|
||||
|
||||
int *b = NULL;
|
||||
|
||||
b = (int *)malloc(big_size);
|
||||
memset(b, 0, big_size);
|
||||
return 0;
|
||||
}
|
@ -1 +0,0 @@
|
||||
{"language": "c", "max_cpu_time": 300, "max_memory": 100000000}
|
@ -1 +0,0 @@
|
||||
{"flag": 3, "signal": 0}
|
Loading…
Reference in New Issue
Block a user