Pagini recente » Borderou de evaluare (job #2496257) | Borderou de evaluare (job #2929831) | Borderou de evaluare (job #1989670) | Borderou de evaluare (job #1334311) | Borderou de evaluare (job #1727369)
Borderou de evaluare (job #1727369)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:9:9: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
user.cpp: In function ‘int solve(int, char*)’:
user.cpp:69:46: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (abs(a - b) == 1 || a == maxN && b)
^
user.cpp: In function ‘void read()’:
user.cpp:11:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s + 1);
^
user.cpp: In function ‘int main()’:
user.cpp:95:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("csir.in", "r", stdin);
^
user.cpp:96:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("csir.out", "w", stdout);
^
user.cpp:97:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &t);
^
/tmp/ccfhfqWw.o: In function `read()':
user.cpp:(.text+0x2f): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 632kb | OK | 10 |
| 2 | 0ms | 832kb | OK | 10 |
| 3 | 0ms | 832kb | OK | 10 |
| 4 | 4ms | 848kb | OK | 10 |
| 5 | 0ms | 880kb | OK | 10 |
| 6 | 8ms | 876kb | OK | 10 |
| 7 | 8ms | 880kb | Incorect | 0 |
| 8 | 8ms | 876kb | Incorect | 0 |
| 9 | 4ms | 872kb | OK | 10 |
| 10 | 8ms | 880kb | OK | 10 |
| Punctaj total | 80 |