Borderou de evaluare (job #1758707)

Utilizator hrazvanHarsan Razvan hrazvan Data 17 septembrie 2016 18:12:05
Problema Farmerj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:33:9: warning: array subscript has type ‘char’ [-Wchar-subscripts] ma[a][b] = ma[b][a] = 1; ^ user.cpp:33:12: warning: array subscript has type ‘char’ [-Wchar-subscripts] ma[a][b] = ma[b][a] = 1; ^ user.cpp:33:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] ma[a][b] = ma[b][a] = 1; ^ user.cpp:33:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] ma[a][b] = ma[b][a] = 1; ^ user.cpp:43:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!ma[s[i]][s[k]] && d[i][j] < d[j][k] + 1){ ^ user.cpp:43:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!ma[s[i]][s[k]] && d[i][j] < d[j][k] + 1){ ^ user.cpp:49:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!ma[s[i]][s[k]] && d[i][j] < d[k][j] + 1){ ^ user.cpp:49:26: warning: array subscript has type ‘char’ [-Wchar-subscripts] if(!ma[s[i]][s[k]] && d[i][j] < d[k][j] + 1){ ^ user.cpp:24:29: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(s + 1, MAXN + 2, in); ^ user.cpp:29:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d ", &m); ^ user.cpp:13:17: warning: ‘c’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(prev[i][j] < j) ^ user.cpp:37:19: note: ‘c’ was declared here int max = 0, l, c, j, k; ^ user.cpp:10:20: warning: ‘l’ may be used uninitialized in this function [-Wmaybe-uninitialized] rez[p][dr[p]] = i; ^ user.cpp:37:16: note: ‘l’ was declared here int max = 0, l, c, j, k; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbcorect10
20ms284kbcorect10
30ms272kbcorect10
40ms284kbcorect10
50ms272kbcorect10
60ms276kbcorect10
70ms272kbcorect10
80ms280kbcorect10
90ms284kbcorect10
100ms276kbcorect10
Punctaj total100

Ceva nu functioneaza?