Borderou de evaluare (job #1724250)

Utilizator depevladVlad Dumitru-Popescu depevlad Data 2 iulie 2016 16:58:45
Problema Trenuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int64_t getCost(int)’: user.cpp:39:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p[c_x] < dq[c_x].size() && t[dq[c_x][p[c_x]]] - c_t > max_wait) p[c_x]++; ^ user.cpp:40:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] bst_wait[c_v] = (p[c_x] == dq[c_x].size() ? INF : bst_nowait[dq[c_x][p[c_x]]]); ^ user.cpp:48:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(p[c_x] < dq[c_x].size() && bst_nowait[dq[c_x].back()] >= bst_nowait[c_v]) dq[c_x].pop_back(); ^ user.cpp: In function ‘int main()’: user.cpp:88:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < o[i].size() - 1; j++) { ^ user.cpp:126:42: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘int64_t {aka long long int}’ [-Wformat=] printf("%d %d\n", r + 1, getCost(r + 1)); ^ user.cpp:55:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trenuri.in", "r", stdin); ^ user.cpp:56:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trenuri.out", "w", stdout); ^ user.cpp:58:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &n, &m, &b); ^ user.cpp:63:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d %d %d", &a, &b, &c, &p, &s); ^ user.cpp: In function ‘int64_t getCost(int)’: user.cpp:35:13: warning: array subscript is below array bounds [-Warray-bounds] bst_wait[v] = 0; ^ user.cpp:36:15: warning: array subscript is below array bounds [-Warray-bounds] bst_nowait[v] = 0; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms3336kbIncorect00
2240ms7024kbKilled by signal 6(SIGABRT).00
3436ms7088kbKilled by signal 6(SIGABRT).00
4528ms16120kbKilled by signal 11(SIGSEGV).00
5528ms16128kbKilled by signal 11(SIGSEGV).00
6528ms16128kbKilled by signal 11(SIGSEGV).00
7328ms15912kbKilled by signal 11(SIGSEGV).00
8392ms16072kbWall time limit exceeded.0
9392ms16076kbWall time limit exceeded.00
10400ms16132kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?