Borderou de evaluare (job #2697357)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 18 ianuarie 2021 12:44:52
Problema AI Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 1

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
13ms131kbKilled by Signal 110
23ms262kbKilled by Signal 110
33ms262kbKilled by Signal 110
410ms524kbKilled by Signal 110
512ms524kbKilled by Signal 110
623ms786kbKilled by Signal 110
74ms393kbKilled by Signal 110
83ms262kbKilled by Signal 110
918ms626kbKilled by Signal 110
1077ms1183kbKilled by Signal 110
1182ms1187kbKilled by Signal 110
12164ms1519kbKilled by Signal 110
13137ms1703kbKilled by Signal 110
14252ms1961kbKilled by Signal 110
15283ms14024kbPrimul numar corect1
16224ms2191kbKilled by Signal 110
17157ms1765kbKilled by Signal 110
18263ms2228kbKilled by Signal 110
19102ms1572kbKilled by Signal 110
20266ms2207kbKilled by Signal 110
Punctaj total1

Ceva nu functioneaza?