Pagini recente » Borderou de evaluare (job #113508) | Borderou de evaluare (job #308643) | Borderou de evaluare (job #2948921) | Borderou de evaluare (job #2877510) | Borderou de evaluare (job #1641472)
Borderou de evaluare (job #1641472)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:31:59: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for( i = 0, total = 0; i < L; ++i ) total += litera[ s[i] ];
^
user.cpp:39:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for( i = 0, x = 0; x + litera[ s[i] ] <= W-3; ++i )
^
user.cpp:40:85: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{ if(!s[i]) printf(" "); else printf("%c",s[i]+'a'-1); x += litera[ s[i] ]; }
^
user.cpp:10:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("texttrim.in","r",stdin);
^
user.cpp:11:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("texttrim.out","w",stdout);
^
user.cpp:18:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
user.cpp:22:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&pass);
^
user.cpp:23:26: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(s,NMax-1,stdin);
^
user.cpp:25:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&W);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 272kb | OK | 10 | 0 |
2 | 0ms | 268kb | OK | 10 |
3 | 0ms | 280kb | OK | 10 |
4 | 0ms | 268kb | OK | 10 |
5 | 0ms | 304kb | OK | 10 |
6 | 0ms | 468kb | OK | 10 |
7 | 112ms | 1240kb | Incorect | 0 |
8 | 20ms | 1240kb | OK | 10 |
9 | 112ms | 1248kb | Incorect | 0 |
10 | 128ms | 1244kb | Incorect | 0 |
Punctaj total | 0 |