Pagini recente » Borderou de evaluare (job #2481831) | Borderou de evaluare (job #204514) | Borderou de evaluare (job #132431) | Borderou de evaluare (job #884742) | Borderou de evaluare (job #1696034)
Borderou de evaluare (job #1696034)
Raport evaluator
Compilare:
user.cpp: In function ‘void add(int)’:
user.cpp:3:21: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define UB(i) ( (i) & ((i)-1)^(i))
^
user.cpp:16:18: note: in expansion of macro ‘UB’
for(;x<=n;x+=UB(x)) aib[x]++;
^
user.cpp: In function ‘int query(int)’:
user.cpp:3:21: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
#define UB(i) ( (i) & ((i)-1)^(i))
^
user.cpp:21:15: note: in expansion of macro ‘UB’
for(;x;x-=UB(x)) s+=aib[x];
^
user.cpp: In function ‘int main()’:
user.cpp:33:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cat1[a[i]][0]++;
^
user.cpp:35:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
A[a[i]][cat1[a[i]][0]]=i;
^
user.cpp:35:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
A[a[i]][cat1[a[i]][0]]=i;
^
user.cpp:39:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cat2[b[i]][0]++;
^
user.cpp:40:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
aux=cat2[b[i]][0];
^
user.cpp:41:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
v[i].first=A[b[i]][aux];
^
user.cpp:26: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:27: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:28:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);
^
user.cpp:29:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(b+1);
^
/tmp/cc5xmBLr.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 | 828kb | OK | 10 |
2 | 0ms | 820kb | OK | 10 |
3 | 0ms | 864kb | OK | 10 |
4 | 0ms | 1152kb | OK | 10 |
5 | 4ms | 1156kb | OK | 10 |
6 | 12ms | 1340kb | OK | 10 |
7 | 8ms | 1408kb | OK | 10 |
8 | Depăşit | 1408kb | Time limit exceeded. | 0 |
9 | 8ms | 1380kb | OK | 10 |
10 | 32ms | 1584kb | OK | 10 |
Punctaj total | 90 |