Borderou de evaluare (job #2594077)

Utilizator ptudortudor P ptudor Data 5 aprilie 2020 13:28:15
Problema PScPld Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:11:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] in >> a + 1; ~~^~~ main.cpp:12:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (n = 1; a[n]; n++); n--; ^~~ main.cpp:12:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (n = 1; a[n]; n++); n--; ^ main.cpp:17:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j = i + 1; a[j] == a[i - (j - i)] && j <= n; j++); j--; ^~~ main.cpp:17:70: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (j = i + 1; a[j] == a[i - (j - i)] && j <= n; j++); j--; ^ main.cpp:25:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j = marg; a[j] == a[i - (j - i)] && j <= n; j++); j--; ^~~ main.cpp:25:73: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (j = marg; a[j] == a[i - (j - i)] && j <= n; j++); j--; ^ main.cpp:43:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j = i + 2; a[j] == a[i - (j - i) + 1] && j <= n; j++); j--; ^~~ main.cpp:43:74: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (j = i + 2; a[j] == a[i - (j - i) + 1] && j <= n; j++); j--; ^ main.cpp:51:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (j = marg; a[j] == a[i - (j - i) + 1] && j <= n; j++); j--; ^~~ main.cpp:51:77: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for (j = marg; a[j] == a[i - (j - i) + 1] && j <= n; j++); j--; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms262kbIncorect0
24ms524kbOK10
34ms655kbOK10
4100ms9175kbTime limit exceeded0
522ms3538kbOK10
630ms6946kbOK10
736ms8650kbOK10
852ms12845kbOK10
966ms15466kbOK10
1065ms17301kbOK10
Punctaj total80

Ceva nu functioneaza?