Pagini recente » Borderou de evaluare (job #2143946) | Borderou de evaluare (job #568006) | Borderou de evaluare (job #141395) | Borderou de evaluare (job #335481) | Borderou de evaluare (job #1347552)
Borderou de evaluare (job #1347552)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:30: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%lld", &width[' ']);
^
user.cpp:27:28: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%lld", &width[i]);
^
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: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:25:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &width[' ']);
^
user.cpp:27:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &width[i]);
^
user.cpp:28:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(str);
^
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:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &W);
^
/tmp/cctRQsfn.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 | 424kb | OK | 10 | 100 |
2 | 0ms | 420kb | OK | 10 |
3 | 0ms | 420kb | OK | 10 |
4 | 0ms | 424kb | OK | 10 |
5 | 0ms | 456kb | OK | 10 |
6 | 0ms | 620kb | OK | 10 |
7 | 8ms | 1400kb | OK | 10 |
8 | 8ms | 1404kb | OK | 10 |
9 | 8ms | 1400kb | OK | 10 |
10 | 8ms | 1404kb | OK | 10 |
Punctaj total | 100 |