Pagini recente » Borderou de evaluare (job #719626) | Borderou de evaluare (job #2021542) | Borderou de evaluare (job #2584559) | Borderou de evaluare (job #980150) | Borderou de evaluare (job #1347445)
Borderou de evaluare (job #1347445)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:37:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s += width[str[i]];
^
user.cpp:44:34: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s += width[str[i]];
^
user.cpp:24:10: warning: unused variable ‘ch’ [-Wunused-variable]
char ch;
^
user.cpp:20:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(inFile, "r", stdin);
^
user.cpp:21:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(outFile, "w", stdout);
^
user.cpp:26:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &width[' ']);
^
user.cpp:28:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &width[i]);
^
user.cpp:30:27: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(str, LEN, stdin);
^
user.cpp:31:20: 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 | 428kb | OK | 10 | 0 |
2 | 0ms | 428kb | OK | 10 |
3 | 0ms | 424kb | OK | 10 |
4 | 0ms | 428kb | OK | 10 |
5 | 0ms | 452kb | OK | 10 |
6 | 0ms | 620kb | OK | 10 |
7 | 8ms | 1400kb | Incorect | 0 |
8 | 8ms | 1400kb | OK | 10 |
9 | 8ms | 1404kb | Incorect | 0 |
10 | 8ms | 1400kb | Incorect | 0 |
Punctaj total | 0 |