Pagini recente » Borderou de evaluare (job #3269206) | Borderou de evaluare (job #2670456) | Borderou de evaluare (job #1722920) | Borderou de evaluare (job #2633980) | Borderou de evaluare (job #2464860)
Borderou de evaluare (job #2464860)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:19:57: warning: array subscript has type 'char' [-Wchar-subscripts]
for (char c='a'; c<='z';scanf("%u", &letterwidth[c++]));
^
main.cpp:27:35: warning: array subscript has type 'char' [-Wchar-subscripts]
crt += letterwidth[text[i]];
^
main.cpp:33:45: warning: array subscript has type 'char' [-Wchar-subscripts]
crt += letterwidth[text[i+j]];
^
main.cpp:15: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:16: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:18:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%u", &letterwidth[' ']);
^
main.cpp:19:5: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (char c='a'; c<='z';scanf("%u", &letterwidth[c++]));
^~~
main.cpp:21:26: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fgets(text, L, stdin);
^
main.cpp:22:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu", &maxW);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 0 |
2 | 6ms | 131kb | OK | 10 |
3 | 2ms | 131kb | Incorect | 0 |
4 | 5ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 4ms | 262kb | OK | 10 |
7 | 6ms | 1179kb | OK | 10 |
8 | 7ms | 1179kb | OK | 10 |
9 | 6ms | 1179kb | OK | 10 |
10 | 6ms | 1179kb | OK | 10 |
Punctaj total | 0 |