Borderou de evaluare (job #2697349)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 18 ianuarie 2021 11:54:10
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
519ms1835kbPrimul numar corect1
643ms2883kbPrimul numar corect1
76ms917kbPrimul numar corect1
83ms524kbPrimul numar corect1
921ms2097kbPrimul numar corect1
1065ms4816kbPrimul numar corect1
1185ms4890kbPrimul numar corect1
12176ms6553kbPrimul numar corect1
13167ms8519kbPrimul numar corect1
14226ms9961kbPrimul numar corect1
15194ms12058kbPrimul numar corect1
16201ms8519kbPrimul numar corect1
17133ms8781kbPrimul numar corect1
18244ms11796kbPrimul numar corect1
19145ms6852kbPrimul numar corect1
20164ms8650kbPrimul numar corect1
Punctaj total20

Ceva nu functioneaza?