Borderou de evaluare (job #2697345)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 18 ianuarie 2021 11:39:32
Problema AI Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 20

Raport evaluator

Compilare: main.cpp: In function 'void Lee(int&, int&, int)': main.cpp:52: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:52: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: In function 'int main()': main.cpp:60: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:60:146: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 8 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 9 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 10 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 11 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 12 has type 'short int*' [-Wformat=] main.cpp:60:146: warning: format '%d' expects argument of type 'int*', but argument 13 has type 'short int*' [-Wformat=] main.cpp:72:33: warning: narrowing conversion of 'l' from 'int' to 'short int' inside { } [-Wnarrowing] v[ 1 ] = { l, c }; ^ main.cpp:72:33: warning: narrowing conversion of 'c' from 'int' to 'short int' inside { } [-Wnarrowing] main.cpp:78:19: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if( ( int )( v[ 1 ].l - v[ 0 ].l ) * ( v[ 2 ].c - v[ 1 ].c ) == ( int )( v[ 1 ].c - v[ 0 ].c ) * ( v[ 2 ].l - v[ 1 ].l ) ) ^ main.cpp: In function 'bool cmp(const poziti&, const poziti&)': main.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ main.cpp: In function 'int main()': main.cpp:60: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:64: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
12ms262kbPrimul numar corect1
22ms262kbPrimul numar corect1
34ms524kbPrimul numar corect1
413ms1441kbPrimul numar corect1
516ms1835kbPrimul numar corect1
641ms2883kbPrimul numar corect1
77ms974kbPrimul numar corect1
83ms524kbPrimul numar corect1
921ms2097kbPrimul numar corect1
1068ms4718kbPrimul numar corect1
1175ms4849kbPrimul numar corect1
12165ms6684kbPrimul numar corect1
13190ms8519kbPrimul numar corect1
14226ms9961kbPrimul numar corect1
15189ms12058kbPrimul numar corect1
16175ms8519kbPrimul numar corect1
17149ms8781kbPrimul numar corect1
18238ms11796kbPrimul numar corect1
19156ms6815kbPrimul numar corect1
20155ms8650kbPrimul numar corect1
Punctaj total20

Ceva nu functioneaza?