Pagini recente » Borderou de evaluare (job #2368382) | Borderou de evaluare (job #558717) | Borderou de evaluare (job #2197046) | Borderou de evaluare (job #2294101) | Borderou de evaluare (job #2630881)
Borderou de evaluare (job #2630881)
Raport evaluator
Compilare:
main.cpp: In function 'int valid(int)':
main.cpp:16:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if((s[i]==s[k]) || (fabs(s[k]-s[i])== k-i))return 0;return 1; }
^~
main.cpp:16:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
if((s[i]==s[k]) || (fabs(s[k]-s[i])== k-i))return 0;return 1; }
^~~~~~
main.cpp:15:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
{for (int i=1; i<k; i++)
^~~
main.cpp:16:53: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if((s[i]==s[k]) || (fabs(s[k]-s[i])== k-i))return 0;return 1; }
^~~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 3ms | 131kb | OK | 10 |
6 | 6ms | 131kb | OK | 10 |
7 | 21ms | 131kb | OK | 10 |
8 | 93ms | 131kb | OK | 10 |
9 | 550ms | 262kb | OK | 10 |
10 | 1003ms | 131kb | Time limit exceeded | 0 |
Punctaj total | 90 |