Pagini recente » Borderou de evaluare (job #491827) | Borderou de evaluare (job #2908202) | Borderou de evaluare (job #2395226) | Borderou de evaluare (job #3173101) | Borderou de evaluare (job #2195184)
Borderou de evaluare (job #2195184)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:19:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < strlen(a); i++)
~~^~~~~~~~~~~
user.cpp:20:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sum += l[a[i]];
^
user.cpp:26:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < strlen(a); i++)
~~^~~~~~~~~~~
user.cpp:28:20: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (sum1 + l[a[i]] > w - 3)
^
user.cpp:34:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
sum1 += l[a[i]];
^
user.cpp:10:36: 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);
^
user.cpp:11:38: 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);
^
user.cpp:12:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d ", &l[' ']);
^
user.cpp:14:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d ", &l[i]);
^
user.cpp:15:26: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(a, NMAX, stdin);
^
user.cpp:16:22: 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 | 812kb | OK | 10 | 0 |
2 | 0ms | 880kb | OK | 10 |
3 | 0ms | 756kb | OK | 10 |
4 | 0ms | 872kb | OK | 10 |
5 | 4ms | 864kb | OK | 10 |
6 | 4ms | 936kb | OK | 10 |
7 | 8ms | 1632kb | OK | 10 |
8 | Depăşit | 1628kb | Time limit exceeded. | 0 |
9 | 116ms | 1628kb | OK | 10 |
10 | Depăşit | 1628kb | Time limit exceeded. | 0 |
Punctaj total | 0 |