Pagini recente » Borderou de evaluare (job #1556188) | Borderou de evaluare (job #2087281) | Borderou de evaluare (job #2331405) | Borderou de evaluare (job #442043) | Borderou de evaluare (job #1876276)
Borderou de evaluare (job #1876276)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
vf[v[i]] = 1;
^
user.cpp:30:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(max < vf[v[i]]) {
^
user.cpp:31:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
max = vf[v[i]];
^
user.cpp:34:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else if(vf[v[i]] == max) {
^
user.cpp:37:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
j = i + P + 1 + vf[v[i]];
^
user.cpp:38:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
m = i + P + 1 - vf[v[i]];
^
user.cpp:12:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("char.in","r",stdin);
^
user.cpp:13:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("char.out","w",stdout);
^
user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &n);
^
user.cpp:16:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&ch);
^
user.cpp:20:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:25:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nr);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 272kb | OK | 10 |
2 | 0ms | 264kb | OK | 10 |
3 | 0ms | 268kb | OK | 10 |
4 | 0ms | 268kb | OK | 10 |
5 | 0ms | 268kb | OK | 10 |
6 | 0ms | 276kb | OK | 10 |
7 | 0ms | 284kb | OK | 10 |
8 | 0ms | 308kb | OK | 10 |
9 | 0ms | 308kb | OK | 10 |
10 | 0ms | 312kb | OK | 10 |
Punctaj total | 100 |