Pagini recente » Borderou de evaluare (job #2850268) | Borderou de evaluare (job #677636) | Borderou de evaluare (job #350180) | Borderou de evaluare (job #1465935) | Borderou de evaluare (job #1472898)
Borderou de evaluare (job #1472898)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:25:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:29:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]].push(i);
^
user.cpp:33:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
int cnt = n - v[a[i]].front() + 1;
^
user.cpp:34:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]
ans += query(cnt);update(cnt);v[a[i]].pop();
^
user.cpp:20:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.in","r",stdin);
^
user.cpp:21:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("swap.out","w",stdout);
^
user.cpp:22:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);gets(b+1);
^
user.cpp:22:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);gets(b+1);
^
/tmp/cc5KcdTi.o: In function `main':
user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 420kb | OK | 10 |
2 | 0ms | 404kb | OK | 10 |
3 | 0ms | 436kb | OK | 10 |
4 | 0ms | 432kb | OK | 10 |
5 | Depăşit | 692kb | Time limit exceeded. | 0 |
6 | 48ms | 864kb | OK | 10 |
7 | 12ms | 864kb | OK | 10 |
8 | 24ms | 812kb | OK | 10 |
9 | 20ms | 856kb | OK | 10 |
10 | 12ms | 812kb | OK | 10 |
Punctaj total | 90 |