Pagini recente »
Borderou de evaluare (job #326362)
|
Borderou de evaluare (job #695432)
|
Borderou de evaluare (job #817500)
|
Borderou de evaluare (job #760486)
|
Borderou de evaluare (job #714578)
Borderou de evaluare (job #714578)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:40:23: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'char*' [-Wformat=]
40 | fscanf(fin, "%d%d", &lin[i], &col[i]);
| ~^ ~~~~~~~
| | |
| int* char*
| %hhd
main.cpp:40:25: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'char*' [-Wformat=]
40 | fscanf(fin, "%d%d", &lin[i], &col[i]);
| ~^ ~~~~~~~
| | |
| int* char*
| %hhd
main.cpp:57:30: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | if (pajiste[lin[i]][col[i]] >= 0) {
| ~~~~~^
main.cpp:57:38: warning: array subscript has type 'char' [-Wchar-subscripts]
57 | if (pajiste[lin[i]][col[i]] >= 0) {
| ~~~~~^
main.cpp:58:34: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | if (pajiste[lin[i]][col[i]] > 0) {
| ~~~~~^
main.cpp:58:42: warning: array subscript has type 'char' [-Wchar-subscripts]
58 | if (pajiste[lin[i]][col[i]] > 0) {
| ~~~~~^
main.cpp:59:44: warning: array subscript has type 'char' [-Wchar-subscripts]
59 | val[i] += pajiste[lin[i]][col[i]];
| ~~~~~^
main.cpp:59:52: warning: array subscript has type 'char' [-Wchar-subscripts]
59 | val[i] += pajiste[lin[i]][col[i]];
| ~~~~~^
main.cpp:60:34: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | pajiste[lin[i]][col[i]] = 0;
| ~~~~~^
main.cpp:60:42: warning: array subscript has type 'char' [-Wchar-subscripts]
60 | pajiste[lin[i]][col[i]] = 0;
| ~~~~~^
main.cpp:64:37: warning: array subscript has type 'char' [-Wchar-subscripts]
64 | lin[i] += ldir[dir[i]];
| ~~~~~^
main.cpp:65:37: warning: array subscript has type 'char' [-Wchar-subscripts]
65 | col[i] += cdir[dir[i]];
| ~~~~~^
main.cpp:22:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | fscanf(fin, "%d%d", &l, &p);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp:34:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | fscanf(fin, "%d%d%d", &line, &c, &ou);
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:38:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
Incorect
|
0
|
2
|
1 ms
|
245 kb
|
OK
|
10
|
3
|
1 ms
|
245 kb
|
Incorect
|
0
|
4
|
1 ms
|
245 kb
|
Incorect
|
0
|
5
|
1 ms
|
245 kb
|
OK
|
10
|
6
|
1 ms
|
245 kb
|
OK
|
10
|
7
|
1 ms
|
245 kb
|
Incorect
|
0
|
8
|
1 ms
|
245 kb
|
Incorect
|
0
|
9
|
4 ms
|
245 kb
|
Incorect
|
0
|
10
|
4 ms
|
245 kb
|
OK
|
10
|
Punctaj total
|
40
|