Pagini recente » Borderou de evaluare (job #2511639) | Borderou de evaluare (job #49697) | Borderou de evaluare (job #2510452) | Borderou de evaluare (job #2935433) | Borderou de evaluare (job #1724261)
Borderou de evaluare (job #1724261)
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 |
1 | 4ms | 3328kb | Incorect | 0 | 0 |
2 | 216ms | 7016kb | Killed by signal 6(SIGABRT). | 0 | 0 |
3 | 88ms | 6844kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
4 | 532ms | 16108kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
5 | 536ms | 16120kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
6 | 528ms | 16116kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
7 | 336ms | 15896kb | Killed by signal 11(SIGSEGV). | 0 | 0 |
8 | 396ms | 16060kb | Wall time limit exceeded. | 0 |
9 | 396ms | 16068kb | Wall time limit exceeded. | 0 | 0 |
10 | 404ms | 16120kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |