Pagini recente » Borderou de evaluare (job #244600) | Borderou de evaluare (job #1447372) | Borderou de evaluare (job #17845) | Borderou de evaluare (job #2934730) | Borderou de evaluare (job #2696856)
Borderou de evaluare (job #2696856)
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 |
1 | 2ms | 131kb | Incorect | 0 |
2 | 3ms | 262kb | Incorect | 0 |
3 | 3ms | 393kb | Incorect | 0 |
4 | 5ms | 655kb | Incorect | 0 |
5 | 5ms | 655kb | Incorect | 0 |
6 | 28ms | 1572kb | Incorect | 0 |
7 | 65ms | 2621kb | Incorect | 0 |
8 | 144ms | 3670kb | Incorect | 0 |
9 | 254ms | 5111kb | Incorect | 0 |
10 | 231ms | 5111kb | Incorect | 0 |
Punctaj total | 0 |