Borderou de evaluare (job #2594080)

Utilizator ptudortudor P ptudor Data 5 aprilie 2020 13:31:59
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:12:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses] in >> a + 1; ~~^~~ main.cpp:13:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for (n = 1; a[n]; n++); n--; ^~~ main.cpp:13: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:18: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:18: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:26: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:26: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:44: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:44: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:52: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:52: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
13ms262kbIncorect0
23ms262kbOK10
34ms393kbOK10
4101ms5111kbTime limit exceeded0
511ms1966kbOK10
624ms3801kbOK10
729ms4587kbOK10
842ms6946kbOK10
954ms8257kbOK10
1058ms9175kbOK10
Punctaj total80

Ceva nu functioneaza?