Pagini recente »
Borderou de evaluare (job #327854)
|
Borderou de evaluare (job #859437)
|
Borderou de evaluare (job #723413)
|
Profil RotaruSarah7
|
Borderou de evaluare (job #721266)
Borderou de evaluare (job #721266)
Raport evaluator
Compilare:
main.cpp: In function 'void rezolva()':
main.cpp:155:17: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'short int*' [-Wformat=]
155 | scanf("%d %d %d", &Arb[i].x, &Arb[i].y, &Arb[i].c);
| ~^ ~~~~~~~~~
| | |
| int* short int*
| %hd
main.cpp:155:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=]
155 | scanf("%d %d %d", &Arb[i].x, &Arb[i].y, &Arb[i].c);
| ~^ ~~~~~~~~~
| | |
| int* short int*
| %hd
main.cpp:166:22: warning: unused variable 'x' [-Wunused-variable]
166 | int a, b, c, x;
| ^
main.cpp:149:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
149 | freopen("zapada.in", "r", stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:150:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
150 | freopen("zapada.out", "w", stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:152:10: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
152 | scanf("%d %d %d", &N, &M, &K);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:155:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
155 | scanf("%d %d %d", &Arb[i].x, &Arb[i].y, &Arb[i].c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:168:14: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
168 | scanf("%d %d %d", &a, &b, &c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
| Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
|
1
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
2
|
1 ms
|
245 kb
|
Incorect
|
0
|
|
3
|
1 ms
|
249 kb
|
Incorect
|
0
|
|
4
|
1 ms
|
249 kb
|
OK
|
10
|
|
5
|
149 ms
|
1552 kb
|
OK
|
10
|
|
6
|
29 ms
|
512 kb
|
OK
|
10
|
|
7
|
79 ms
|
507 kb
|
OK
|
10
|
|
8
|
259 ms
|
1290 kb
|
OK
|
10
|
|
9
|
469 ms
|
1814 kb
|
OK
|
10
|
|
10
|
479 ms
|
1806 kb
|
OK
|
10
|
|
Punctaj total
|
70
|