Borderou de evaluare (job #2696856)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 16 ianuarie 2021 23:31:46
Problema Padure Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'void Fill(Andrei, const int&, const int&, int)': main.cpp:27:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if( nr.l >= 0 && nr.l < n && nr.c >= 0 && nr.c < m && dis[ nr.l ][ nr.c ] == INF ) ^ main.cpp: In function 'int main()': main.cpp:39:69: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'short int*' [-Wformat=] fscanf( fin, "%d%d%d%d%d%d", &n, &m, &st.l, &st.c, &sf.l, &sf.c ); ^ main.cpp:39:69: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'short int*' [-Wformat=] main.cpp:39:69: warning: format '%d' expects argument of type 'int*', but argument 7 has type 'short int*' [-Wformat=] main.cpp:39:69: warning: format '%d' expects argument of type 'int*', but argument 8 has type 'short int*' [-Wformat=] main.cpp:42:45: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'char*' [-Wformat=] fscanf( fin, "%d", &a[ l ][ c ] ); ^ main.cpp:48:9: warning: unused variable 'nr' [-Wunused-variable] int nr = 1, left = 0, maxx = 1; ^~ main.cpp:39:70: 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", &n, &m, &st.l, &st.c, &sf.l, &sf.c ); ^ main.cpp:42:46: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d", &a[ l ][ c ] ); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbIncorect0
23ms262kbIncorect0
33ms393kbIncorect0
45ms655kbIncorect0
55ms655kbIncorect0
628ms1572kbIncorect0
765ms2621kbIncorect0
8144ms3670kbIncorect0
9254ms5111kbIncorect0
10231ms5111kbIncorect0
Punctaj total0

Ceva nu functioneaza?