Pagini recente » Borderou de evaluare (job #1019002) | Borderou de evaluare (job #690638) | Borderou de evaluare (job #897501) | Borderou de evaluare (job #2514093) | Borderou de evaluare (job #2683612)
Borderou de evaluare (job #2683612)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:26:33: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
scanf("%d", &a[i][j]);
^
main.cpp:19:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.in", "r", stdin);
^
main.cpp:20:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.out", "w", stdout);
^
main.cpp:23:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%hd", &n);
^
main.cpp:26:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i][j]);
^
main.cpp:21:17: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
short n, x, y;
^
main.cpp:21:14: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
short n, x, y;
^
main.cpp:32:13: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
if(ans < d[i][j]) ans = d[i][j], x = i, y = j;
^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 262kb | Killed by Signal 11 | 0 |
2 | 6ms | 524kb | Killed by Signal 11 | 0 |
3 | 10ms | 917kb | Killed by Signal 11 | 0 |
4 | 8ms | 917kb | Killed by Signal 11 | 0 |
5 | 43ms | 2097kb | Killed by Signal 11 | 0 |
6 | 97ms | 2883kb | Killed by Signal 11 | 0 |
7 | 249ms | 4980kb | Killed by Signal 11 | 0 |
8 | 327ms | 5767kb | Killed by Signal 11 | 0 |
9 | 341ms | 6291kb | Killed by Signal 11 | 0 |
10 | 423ms | 6422kb | Killed by Signal 11 | 0 |
Punctaj total | 0 |