Borderou de evaluare (job #1821887)

Utilizator zdavid112zIon David-Gabriel zdavid112z Data 3 decembrie 2016 20:38:45
Problema Ubuntzei Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘void dijkstra(int, int)’: user.cpp:32:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < v[start].size(); i++) ^ user.cpp:46:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < v[a].size(); i++) ^ user.cpp: In function ‘int main()’: user.cpp:101:37: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]); ^ user.cpp:7:21: note: in definition of macro ‘min’ #define min(x,y) (x<y?x:y) ^ user.cpp:101:31: note: in expansion of macro ‘BIT’ sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]); ^ user.cpp:101:37: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]); ^ user.cpp:7:25: note: in definition of macro ‘min’ #define min(x,y) (x<y?x:y) ^ user.cpp:101:31: note: in expansion of macro ‘BIT’ sol = min(sol, mat[i][BIT(k + 1) - 1] + dist[i][n - 1]); ^ user.cpp:61:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ubuntzei.in", "r", stdin); ^ user.cpp:62:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ubuntzei.out", "w", stdout); ^ user.cpp:63:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &n, &m, &k); ^ user.cpp:67:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &vk[i]); ^ user.cpp:72:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &a, &b, &c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms4408kbIncorect0
20ms1344kbIncorect0
30ms332kbIncorect0
48ms4512kbKilled by signal 11(SIGSEGV).0
520ms2636kbIncorect0
60ms364kbIncorect0
70ms420kbOK5
80ms440kbIncorect0
90ms480kbIncorect0
100ms496kbIncorect0
110ms512kbIncorect0
120ms508kbIncorect0
130ms528kbIncorect0
1424ms4616kbKilled by signal 11(SIGSEGV).0
1516ms1600kbIncorect0
1612ms712kbIncorect0
1716ms672kbIncorect0
1832ms4732kbKilled by signal 11(SIGSEGV).0
1980ms4844kbOK5
200ms312kbIncorect0
Punctaj total10

Ceva nu functioneaza?