Pagini recente » Borderou de evaluare (job #1526066) | Borderou de evaluare (job #2344142) | Borderou de evaluare (job #1905055) | Borderou de evaluare (job #1521151) | Borderou de evaluare (job #2326872)
Borderou de evaluare (job #2326872)
Raport evaluator
Compilare:
main.cpp: In function 'void bubble()':
main.cpp:21:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(w[j] < w[i])
^~
main.cpp:23:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
swap(p[i], p[j]);
^~~~
main.cpp: In function 'void constructie()':
main.cpp:39:20: warning: array subscript is above array bounds [-Warray-bounds]
d[2][j] = d[1][j];
~~~^
main.cpp:41:20: warning: array subscript is above array bounds [-Warray-bounds]
d[2][j] = max(d[1][j], p[i] + d[1][j - w[i]]);
~~~^
main.cpp:44:26: warning: array subscript is above array bounds [-Warray-bounds]
d[1][j] = d[2][j];
~~~^
main.cpp: In function 'int main()':
main.cpp:52:16: warning: array subscript is above array bounds [-Warray-bounds]
fout << d[2][g];
~~~^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | Incorect | 0 | 0 |
2 | 2ms | 131kb | Incorect | 0 |
3 | 2ms | 131kb | Incorect | 0 | 0 |
4 | 3ms | 131kb | Incorect | 0 |
5 | 3ms | 131kb | Incorect | 0 |
6 | 6ms | 131kb | Incorect | 0 | 0 |
7 | 5ms | 131kb | Incorect | 0 |
8 | 10ms | 131kb | Incorect | 0 | 0 |
9 | 11ms | 131kb | Incorect | 0 |
10 | 11ms | 131kb | Incorect | 0 |
11 | 96ms | 131kb | Incorect | 0 | 0 |
12 | 88ms | 131kb | Incorect | 0 |
13 | 87ms | 131kb | Incorect | 0 |
14 | 224ms | 262kb | Incorect | 0 | 0 |
15 | 164ms | 262kb | Incorect | 0 |
16 | 180ms | 262kb | Incorect | 0 |
17 | 212ms | 262kb | Incorect | 0 | 0 |
18 | 218ms | 393kb | Incorect | 0 |
19 | 318ms | 393kb | Incorect | 0 |
20 | 260ms | 393kb | Incorect | 0 |
Punctaj total | 0 |