Pagini recente » Borderou de evaluare (job #1152497) | Borderou de evaluare (job #2394647) | Borderou de evaluare (job #1122875) | Borderou de evaluare (job #533099) | Borderou de evaluare (job #2697357)
Borderou de evaluare (job #2697357)
Raport evaluator
Compilare:
main.cpp: In function 'void Lee(int (*)[1002])':
main.cpp:51:37: warning: narrowing conversion of '(((int)nr.poziti::l) + dl[d])' from 'int' to 'short int' inside { } [-Wnarrowing]
q[ poz++ ] = { nr.l + dl[ d ], nr.c + dc[ d ] };
~~~~~^~~~~~~~~
main.cpp:51:53: warning: narrowing conversion of '(((int)nr.poziti::c) + dc[d])' from 'int' to 'short int' inside { } [-Wnarrowing]
q[ poz++ ] = { nr.l + dl[ d ], nr.c + dc[ d ] };
~~~~~^~~~~~~~~
main.cpp:45:17: warning: unused variable 'ok' [-Wunused-variable]
int st = 0, ok = 0;
^~
main.cpp: In function 'int main()':
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'short int*' [-Wformat=]
fscanf( fin, "%d%d %d %d %d %d %d %d %d %d %d%d", &n, &tinta.l, &tinta.c, &ls1.l, &ls1.c, &ls2.l, &ls2.c, &rb1.l, &rb1.c, &rb2.l, &rb2.c, &m );
^
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 8 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 9 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 10 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 11 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 12 has type 'short int*' [-Wformat=]
main.cpp:59:146: warning: format '%d' expects argument of type 'int*', but argument 13 has type 'short int*' [-Wformat=]
main.cpp:73:33: warning: narrowing conversion of 'l' from 'int' to 'short int' inside { } [-Wnarrowing]
v[ 1 ] = { l, c };
^
main.cpp:73:33: warning: narrowing conversion of 'c' from 'int' to 'short int' inside { } [-Wnarrowing]
main.cpp:79:33: warning: narrowing conversion of 'l' from 'int' to 'short int' inside { } [-Wnarrowing]
v[ 1 ] = { l, c };
^
main.cpp:79:33: warning: narrowing conversion of 'c' from 'int' to 'short int' inside { } [-Wnarrowing]
main.cpp:82:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if( v[ 1 ].l == l && v[ 1 ].c == c && verif( v[ 0 ].l, v[ 0 ].c, v[ 1 ].l, v[ 1 ].c, v[ 2 ].l, v[ 2 ].c ) )
^
main.cpp: In function 'bool cmp(const poziti&, const poziti&)':
main.cpp:30:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:59:147: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d%d %d %d %d %d %d %d %d %d %d%d", &n, &tinta.l, &tinta.c, &ls1.l, &ls1.c, &ls2.l, &ls2.c, &rb1.l, &rb1.c, &rb2.l, &rb2.c, &m );
^
main.cpp:65:39: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf( fin, "%d %d", &x, &y );
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | Killed by Signal 11 | 0 |
2 | 3ms | 262kb | Killed by Signal 11 | 0 |
3 | 3ms | 262kb | Killed by Signal 11 | 0 |
4 | 10ms | 524kb | Killed by Signal 11 | 0 |
5 | 12ms | 524kb | Killed by Signal 11 | 0 |
6 | 23ms | 786kb | Killed by Signal 11 | 0 |
7 | 4ms | 393kb | Killed by Signal 11 | 0 |
8 | 3ms | 262kb | Killed by Signal 11 | 0 |
9 | 18ms | 626kb | Killed by Signal 11 | 0 |
10 | 77ms | 1183kb | Killed by Signal 11 | 0 |
11 | 82ms | 1187kb | Killed by Signal 11 | 0 |
12 | 164ms | 1519kb | Killed by Signal 11 | 0 |
13 | 137ms | 1703kb | Killed by Signal 11 | 0 |
14 | 252ms | 1961kb | Killed by Signal 11 | 0 |
15 | 283ms | 14024kb | Primul numar corect | 1 |
16 | 224ms | 2191kb | Killed by Signal 11 | 0 |
17 | 157ms | 1765kb | Killed by Signal 11 | 0 |
18 | 263ms | 2228kb | Killed by Signal 11 | 0 |
19 | 102ms | 1572kb | Killed by Signal 11 | 0 |
20 | 266ms | 2207kb | Killed by Signal 11 | 0 |
Punctaj total | 1 |