Pagini recente » Borderou de evaluare (job #762486) | Borderou de evaluare (job #68144) | Borderou de evaluare (job #263350) | Borderou de evaluare (job #2194477) | Borderou de evaluare (job #1696052)
Borderou de evaluare (job #1696052)
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:38: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:43:15: note: in expansion of macro ‘UB’
for(;x;x-=UB(x)) s+=aib[x];
^
user.cpp: In function ‘int main()’:
user.cpp:55:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cat1[a[i]][0]++;
^
user.cpp:57:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
A[a[i]][cat1[a[i]][0]]=i;
^
user.cpp:57:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
A[a[i]][cat1[a[i]][0]]=i;
^
user.cpp:61:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cat2[b[i]][0]++;
^
user.cpp:62:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
aux=cat2[b[i]][0];
^
user.cpp:63:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
x[i]=v[i].first=A[b[i]][aux];
^
user.cpp:48: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:49: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:50:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(a+1);
^
user.cpp:51:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(b+1);
^
/tmp/ccoCoIag.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 | 832kb | OK | 10 |
2 | 0ms | 816kb | OK | 10 |
3 | 0ms | 868kb | Incorect | 0 |
4 | 0ms | 1152kb | Incorect | 0 |
5 | 4ms | 1276kb | Incorect | 0 |
6 | 8ms | 1540kb | Incorect | 0 |
7 | 8ms | 1604kb | Incorect | 0 |
8 | 8ms | 1604kb | Incorect | 0 |
9 | 8ms | 1568kb | Incorect | 0 |
10 | 8ms | 1784kb | Incorect | 0 |
Punctaj total | 20 |