Borderou de evaluare (job #2696843)

Utilizator andrei_marciucMarciuc Andrei andrei_marciuc Data 16 ianuarie 2021 22:57:41
Problema Padure Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In function 'void Lee(Andrei, const int&, const int&, int)': main.cpp:20: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 ] > val + ( a[ el.l ][ el.c ] != a[ nr.l ][ nr.c ] ) ) ^ main.cpp: In function 'int main()': main.cpp:36:45: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=] fscanf( fin, "%d", &a[ l ][ c ] ); ^ main.cpp:33: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:36: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
12ms131kbOK10
23ms262kbOK10
3133ms655kbOK10
4400ms1572kbTime limit exceeded0
5401ms1835kbTime limit exceeded0
6403ms9568kbTime limit exceeded0
7403ms22675kbTime limit exceeded0
8402ms40329kbTime limit exceeded0
9400ms21233kbTime limit exceeded0
10403ms29491kbTime limit exceeded0
Punctaj total30

Ceva nu functioneaza?