Pagini recente » Borderou de evaluare (job #2382716) | Borderou de evaluare (job #1111018) | Borderou de evaluare (job #1857083) | Borderou de evaluare (job #830750) | Borderou de evaluare (job #1472891)
Borderou de evaluare (job #1472891)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:87:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:87:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:91:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]].push(i);
^
user.cpp:93:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p[i] = v[a[i]].front(),v[a[i]].pop();
^
user.cpp:93:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p[i] = v[a[i]].front(),v[a[i]].pop();
^
user.cpp:83: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:84: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:84:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);gets(b+1);
^
/tmp/ccpta0hO.o: In function `main':
user.cpp:(.text.startup+0x39): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 452kb | OK | 10 |
2 | 0ms | 440kb | OK | 10 |
3 | 0ms | 476kb | OK | 10 |
4 | 0ms | 472kb | OK | 10 |
5 | Depăşit | 836kb | Time limit exceeded. | 0 |
6 | 48ms | 1044kb | OK | 10 |
7 | 12ms | 1028kb | OK | 10 |
8 | 28ms | 1028kb | OK | 10 |
9 | 16ms | 1064kb | OK | 10 |
10 | 12ms | 1036kb | OK | 10 |
Punctaj total | 90 |