Pagini recente » Borderou de evaluare (job #2952298) | Borderou de evaluare (job #2416552) | Borderou de evaluare (job #2709207) | Borderou de evaluare (job #483982) | Borderou de evaluare (job #1472902)
Borderou de evaluare (job #1472902)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:35:40: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:35:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for (int i = 1;i <= n;++i) ++r[a[i]],--r[b[i]];
^
user.cpp:39:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[b[i]].push(i);
^
user.cpp:43:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p[i] = n - v[a[i]].front() + 1;v[a[i]].pop();
^
user.cpp:43:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
p[i] = n - v[a[i]].front() + 1;v[a[i]].pop();
^
user.cpp:30: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:31: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:32: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:32:24: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);gets(b+1);
^
/tmp/ccG28FEm.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 | 424kb | OK | 10 |
2 | 0ms | 408kb | OK | 10 |
3 | 0ms | 456kb | OK | 10 |
4 | 0ms | 456kb | OK | 10 |
5 | 16ms | 968kb | OK | 10 |
6 | 24ms | 1380kb | OK | 10 |
7 | 24ms | 1360kb | OK | 10 |
8 | 24ms | 1332kb | OK | 10 |
9 | 24ms | 1360kb | OK | 10 |
10 | 28ms | 1376kb | OK | 10 |
Punctaj total | 100 |