Pagini recente » Borderou de evaluare (job #270051) | Borderou de evaluare (job #1725177) | Borderou de evaluare (job #3010444) | Borderou de evaluare (job #1730483) | Borderou de evaluare (job #1724250)
Borderou de evaluare (job #1724250)
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 |
| 1 | 4ms | 3336kb | Incorect | 0 | 0 |
| 2 | 240ms | 7024kb | Killed by signal 6(SIGABRT). | 0 | 0 |
| 3 | 436ms | 7088kb | Killed by signal 6(SIGABRT). | 0 | 0 |
| 4 | 528ms | 16120kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
| 5 | 528ms | 16128kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
| 6 | 528ms | 16128kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
| 7 | 328ms | 15912kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
| 8 | 392ms | 16072kb | Wall time limit exceeded. | 0 |
| 9 | 392ms | 16076kb | Wall time limit exceeded. | 0 | 0 |
| 10 | 400ms | 16132kb | Killed by signal 11(SIGSEGV). | 0 |
| Punctaj total | 0 |