Pagini recente » Borderou de evaluare (job #2154348) | Borderou de evaluare (job #2433012) | Borderou de evaluare (job #1845221) | Borderou de evaluare (job #350339) | Borderou de evaluare (job #1347524)
Borderou de evaluare (job #1347524)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:38:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s += width[str[i]];
^
user.cpp:45: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:29:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str);
^
user.cpp:30:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str);
^
user.cpp:31:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &W);
^
/tmp/ccHNllvy.o: In function `main':
user.cpp:(.text.startup+0x8b): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 428kb | OK | 10 | 0 |
2 | 0ms | 424kb | OK | 10 |
3 | 0ms | 428kb | OK | 10 |
4 | 0ms | 424kb | OK | 10 |
5 | 0ms | 452kb | OK | 10 |
6 | 0ms | 616kb | OK | 10 |
7 | 8ms | 1400kb | Incorect | 0 |
8 | 8ms | 1396kb | OK | 10 |
9 | 8ms | 1400kb | Incorect | 0 |
10 | 8ms | 1400kb | Incorect | 0 |
Punctaj total | 0 |