Pagini recente » Borderou de evaluare (job #1507995) | Borderou de evaluare (job #2402981) | Borderou de evaluare (job #336955) | Borderou de evaluare (job #1554737) | Borderou de evaluare (job #1492621)
Borderou de evaluare (job #1492621)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:48:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(K >= 3 && S[St[K-1]] < S[St[K-2]] && S[St[K-1]] < S[St[K-0]]){
^
user.cpp:48:55: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(K >= 3 && S[St[K-1]] < S[St[K-2]] && S[St[K-1]] < S[St[K-0]]){
^
user.cpp:48:69: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(K >= 3 && S[St[K-1]] < S[St[K-2]] && S[St[K-1]] < S[St[K-0]]){
^
user.cpp:48:82: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(K >= 3 && S[St[K-1]] < S[St[K-2]] && S[St[K-1]] < S[St[K-0]]){
^
user.cpp:49:42: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cost += max(S[St[K-2]] - 'a' + 1, S[St[K-0]] - 'a' + 1);
^
user.cpp:49:64: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cost += max(S[St[K-2]] - 'a' + 1, S[St[K-0]] - 'a' + 1);
^
user.cpp:50:38: warning: operation on ‘K’ may be undefined [-Wsequence-point]
St[K-1] = St[K--];
^
user.cpp:55:37: warning: array subscript has type ‘char’ [-Wchar-subscripts]
printf("%c", S[St[i]]);
^
user.cpp:13:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("charlie.in" ,"r", stdin );
^
user.cpp:14:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("charlie.out","w", stdout);
^
user.cpp:16:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &cod );
^
user.cpp:17:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", S + 1);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 284kb | OK | 5 |
2 | 0ms | 288kb | OK | 5 |
3 | 0ms | 288kb | OK | 5 |
4 | 0ms | 344kb | OK | 5 |
5 | 0ms | 380kb | OK | 5 |
6 | 0ms | 284kb | Incorect | 0 |
7 | 0ms | 284kb | Incorect | 0 |
8 | 0ms | 292kb | Incorect | 0 |
9 | 0ms | 304kb | Incorect | 0 |
10 | 0ms | 340kb | Incorect | 0 |
11 | 8ms | 460kb | Incorect | 0 |
12 | 4ms | 404kb | Incorect | 0 |
13 | 8ms | 448kb | Incorect | 0 |
14 | 8ms | 452kb | Incorect | 0 |
15 | 4ms | 384kb | Incorect | 0 |
16 | 4ms | 424kb | Incorect | 0 |
17 | 8ms | 428kb | Incorect | 0 |
18 | 8ms | 448kb | Incorect | 0 |
19 | 8ms | 452kb | Incorect | 0 |
20 | 0ms | 284kb | OK | 5 |
Punctaj total | 30 |