Pagini recente » Borderou de evaluare (job #2679160) | Borderou de evaluare (job #1450546) | Borderou de evaluare (job #2802714) | Borderou de evaluare (job #489963) | Borderou de evaluare (job #2416634)
Borderou de evaluare (job #2416634)
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:32: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(Text, 1000001, 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 | 100 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 3ms | 393kb | OK | 10 |
7 | 7ms | 1179kb | OK | 10 |
8 | 18ms | 1179kb | OK | 10 |
9 | 7ms | 1179kb | OK | 10 |
10 | 7ms | 1179kb | OK | 10 |
Punctaj total | 100 |