Pagini recente » Borderou de evaluare (job #1528477) | Borderou de evaluare (job #421615) | Borderou de evaluare (job #2182439) | Borderou de evaluare (job #2394138) | Borderou de evaluare (job #2477225)
Borderou de evaluare (job #2477225)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:30:35: warning: NULL used in arithmetic [-Wpointer-arith]
for(i = 0; sum < w && s[i] != NULL; i++) {
^~~~
main.cpp:34:16: warning: NULL used in arithmetic [-Wpointer-arith]
if(s[i] == NULL && sum <= w) {
^~~~
main.cpp:38:20: warning: NULL used in arithmetic [-Wpointer-arith]
if(s[i] == NULL) i--;
^~~~
main.cpp:39:14: warning: statement has no effect [-Wunused-value]
for(i; i >= 0 && sum+3 > w; i--) sum -= l[mp(s[i])];
^
main.cpp:40:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int j = 0; j <= i; j++) cout << s[j]; cout << "...";
^~~
main.cpp:40:51: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int j = 0; j <= i; j++) cout << s[j]; cout << "...";
^~~~
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
| 1 | 2ms | 131kb | Incorect | 0 | 0 |
| 2 | 2ms | 131kb | OK | 10 |
| 3 | 2ms | 131kb | OK | 10 |
| 4 | 2ms | 131kb | OK | 10 |
| 5 | 2ms | 131kb | Incorect | 0 |
| 6 | 3ms | 262kb | Incorect | 0 |
| 7 | 3ms | 262kb | Incorect | 0 |
| 8 | 3ms | 262kb | Incorect | 0 |
| 9 | 3ms | 262kb | Incorect | 0 |
| 10 | 3ms | 262kb | Incorect | 0 |
| Punctaj total | 0 |