Pagini recente » Borderou de evaluare (job #39353) | Borderou de evaluare (job #1530754) | Borderou de evaluare (job #55021) | Borderou de evaluare (job #2462369) | Borderou de evaluare (job #421563)
Borderou de evaluare (job #421563)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:58:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.in", "r", stdin);
^
main.cpp:59:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("pirati.out", "w", stdout);
^
main.cpp:60:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d\n", &m, &n, &k);
^
main.cpp:62:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(S[i] + 1, NMAX, stdin);
^
main.cpp:73:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &x1, &y1, &x2, &y2);
^
main.cpp: In function 'void fill2(int, int)':
main.cpp:19:13: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations]
if(x+lin[t] && x + lin[t]<= m && y+col[t] && y+col[t]<=n && S[x+lin[t]][y+col[t]] =='0')
~~~~~^
main.cpp:18:19: note: within this loop
for(int t = 0; t < 8; ++t)
~~^~~
main.cpp: In function 'void fill(int, int)':
main.cpp:26:15: warning: iteration 7 invokes undefined behavior [-Waggressive-loop-optimizations]
if(S[x+lin[t]][y+col[t]]=='1')
~~~~~^
main.cpp:25:19: note: within this loop
for(int t = 0; t < 8; ++t){
~~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 21ms | 12845kb | Killed by Signal 11 | 0 |
2 | 22ms | 12976kb | Killed by Signal 11 | 0 |
3 | 32ms | 13205kb | Killed by Signal 11 | 0 |
4 | 27ms | 13238kb | Killed by Signal 11 | 0 |
5 | 31ms | 14024kb | Killed by Signal 11 | 0 |
6 | 29ms | 13762kb | Killed by Signal 11 | 0 |
7 | 25ms | 14024kb | Killed by Signal 11 | 0 |
8 | 30ms | 14680kb | Killed by Signal 11 | 0 |
9 | 27ms | 13893kb | Killed by Signal 11 | 0 |
10 | 26ms | 14024kb | Killed by Signal 11 | 0 |
11 | 26ms | 12713kb | Killed by Signal 11 | 0 |
12 | 21ms | 12713kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |