Pagini recente » Borderou de evaluare (job #845699) | Borderou de evaluare (job #885461) | Borderou de evaluare (job #1892189) | Borderou de evaluare (job #1740919) | Borderou de evaluare (job #2416633)
Borderou de evaluare (job #2416633)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:17:40: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=0; i<L; ++i) {S+=List[Text[i]]; if(S>W) break;}
^
main.cpp:20:25: warning: array subscript has type 'char' [-Wchar-subscripts]
while(W-List[Text[i]]>=0){printf("%c", Text[i]); W-=List[Text[i]]; ++i;}
^
main.cpp:20:69: warning: array subscript has type 'char' [-Wchar-subscripts]
while(W-List[Text[i]]>=0){printf("%c", Text[i]); W-=List[Text[i]]; ++i;}
^
main.cpp:9:39: 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);
^
main.cpp:10:41: 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);
^
main.cpp:11:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &List[' ']);
^
main.cpp:12:52: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i='a'; i<='z'; ++i) scanf("%lld", &List[i]);
^
main.cpp:14:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(Text, 100001, stdin);
^
main.cpp:16:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &W);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 0 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 3ms | 262kb | Incorect | 0 |
7 | 3ms | 262kb | OK | 10 |
8 | 3ms | 262kb | Incorect | 0 |
9 | 3ms | 262kb | Incorect | 0 |
10 | 3ms | 262kb | Incorect | 0 |
Punctaj total | 0 |