Pagini recente » Borderou de evaluare (job #2148498) | Borderou de evaluare (job #3177549) | Borderou de evaluare (job #610566) | Borderou de evaluare (job #2138918) | Borderou de evaluare (job #1323324)
Borderou de evaluare (job #1323324)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:14:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ec.in", "r", stdin); //ifstream fi("5-ec.in");
^
user.cpp:16:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k); //fi >> n >> k;
^
user.cpp:21:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x); //fi >> x;
^
user.cpp:27:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(ch);
^
user.cpp:29:26: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gr2 = false, gets(ch); s = string(ch);
^
user.cpp:23:13: warning: array subscript is below array bounds [-Warray-bounds]
f2[x]++;
^
user.cpp:23:13: warning: array subscript is below array bounds [-Warray-bounds]
/tmp/cc6j3zv0.o: In function `main':
user.cpp:(.text.startup+0x135): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 476kb | OK | 10 |
2 | 4ms | 672kb | Killed by signal 6(SIGABRT). | 0 |
3 | 4ms | 660kb | Killed by signal 6(SIGABRT). | 0 |
4 | 4ms | 684kb | Killed by signal 6(SIGABRT). | 0 |
5 | 0ms | 424kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 4ms | 660kb | Killed by signal 6(SIGABRT). | 0 |
7 | 0ms | 444kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 440kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 440kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 76ms | 456kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 10 |