Pagini recente » Borderou de evaluare (job #2003777) | Borderou de evaluare (job #719965) | Borderou de evaluare (job #1472897)
Borderou de evaluare (job #1472897)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:86:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:86:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:90:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]].push(i);
^
user.cpp:94:44: warning: array subscript has type ‘char’ [-Wchar-subscripts]
unsigned short cnt = n - v[a[i]].front() + 1;
^
user.cpp:95:49: warning: array subscript has type ‘char’ [-Wchar-subscripts]
ans += query(cnt);update(cnt);v[a[i]].pop();
^
user.cpp:82: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:83: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:83:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);gets(b+1);
^
/tmp/cc9VyRfa.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 | 444kb | OK | 10 |
2 | 0ms | 440kb | OK | 10 |
3 | 0ms | 464kb | OK | 10 |
4 | 0ms | 460kb | OK | 10 |
5 | Depăşit | 628kb | Time limit exceeded. | 0 |
6 | Depăşit | 608kb | Time limit exceeded. | 0 |
7 | Depăşit | 588kb | Time limit exceeded. | 0 |
8 | Depăşit | 604kb | Time limit exceeded. | 0 |
9 | Depăşit | 588kb | Time limit exceeded. | 0 |
10 | Depăşit | 596kb | Time limit exceeded. | 0 |
Punctaj total | 40 |