Pagini recente »
Borderou de evaluare (job #394389)
|
Borderou de evaluare (job #313486)
|
Borderou de evaluare (job #41157)
|
Borderou de evaluare (job #645473)
|
Borderou de evaluare (job #615007)
Borderou de evaluare (job #615007)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:21:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=]
21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] );
| ~^ ~~~~~
| | |
| int* short int*
| %hd
main.cpp:21:24: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=]
21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] );
| ~^ ~~~~~
| | |
| int* short int*
| %hd
main.cpp:21:28: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'short int*' [-Wformat=]
21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] );
| ~^ ~~~~~~~~~~
| | |
| int* short int*
| %hd
main.cpp:18:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | fscanf( fin, "%d", &n );
| ~~~~~~^~~~~~~~~~~~~~~~~
main.cpp:21:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
21 | fscanf( fin, "%d%d%d%d%d", &x[i], &yCoord, &y[i], &ly, &height[i] );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
131 kb
|
OK
|
10
|
2
|
1 ms
|
131 kb
|
OK
|
10
|
3
|
1 ms
|
131 kb
|
OK
|
10
|
4
|
1 ms
|
131 kb
|
OK
|
10
|
5
|
1 ms
|
131 kb
|
OK
|
10
|
6
|
1 ms
|
131 kb
|
OK
|
10
|
7
|
1 ms
|
131 kb
|
OK
|
10
|
8
|
1 ms
|
131 kb
|
OK
|
10
|
9
|
1 ms
|
131 kb
|
OK
|
10
|
10
|
1 ms
|
131 kb
|
OK
|
10
|
Punctaj total
|
100
|