Borderou de evaluare (job #1724261)

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

Raport evaluator

Compilare: user.cpp: In function ‘int64_t getCost2(int)’: user.cpp:61: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:62: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:70: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:110:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < o[i].size() - 1; j++) { ^ user.cpp:148: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:77: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:78: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:80: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:85: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; ^ user.cpp: In function ‘int64_t getCost2(int)’: user.cpp:57:13: warning: array subscript is below array bounds [-Warray-bounds] bst_wait[v] = 0; ^ user.cpp:58:15: warning: array subscript is below array bounds [-Warray-bounds] bst_nowait[v] = 0; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms3328kbIncorect00
2216ms7016kbKilled by signal 6(SIGABRT).00
388ms6844kbKilled by signal 11(SIGSEGV).00
4532ms16108kbKilled by signal 11(SIGSEGV).00
5536ms16120kbKilled by signal 11(SIGSEGV).00
6528ms16116kbKilled by signal 11(SIGSEGV).00
7336ms15896kbKilled by signal 11(SIGSEGV).00
8396ms16060kbWall time limit exceeded.0
9396ms16068kbWall time limit exceeded.00
10404ms16120kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?