Pagini recente » Borderou de evaluare (job #297589) | Borderou de evaluare (job #1574019) | Borderou de evaluare (job #3256832) | Borderou de evaluare (job #2352888) | Borderou de evaluare (job #2738857)
Borderou de evaluare (job #2738857)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:31:30: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
fscanf(fin, "%d %d", n, m);
^
main.cpp:31:30: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=]
main.cpp:42:31: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
fscanf(fin, "%d", a[i]);
^
main.cpp:48:35: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
fscanf(fin, "%d %d", x, xa);
^
main.cpp:48:35: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'int' [-Wformat=]
main.cpp:50:33: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
fscanf(fin, "%d", xb);
^
main.cpp:31:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", n, m);
^
main.cpp:42:32: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", a[i]);
^
main.cpp:48:36: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", x, xa);
^
main.cpp:50:34: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", xb);
^
main.cpp:48:36: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
fscanf(fin, "%d %d", x, xa);
^
main.cpp:50:34: warning: 'xb' may be used uninitialized in this function [-Wmaybe-uninitialized]
fscanf(fin, "%d", xb);
^
main.cpp:53:24: warning: 'xa' may be used uninitialized in this function [-Wmaybe-uninitialized]
for(xa = pn+xa-1; xa > 0; xa /= 2)
~~^~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 2 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 3 | 3ms | 131kb | Killed by Signal 11 | 0 |
| 4 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 5 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 6 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 7 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 8 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 9 | 2ms | 131kb | Killed by Signal 11 | 0 |
| 10 | 2ms | 131kb | Killed by Signal 11 | 0 |
| Punctaj total | 0 |