Pagini recente » Borderou de evaluare (job #2035710) | Borderou de evaluare (job #2160379) | Borderou de evaluare (job #2828236) | Borderou de evaluare (job #736862) | Borderou de evaluare (job #1696033)
Borderou de evaluare (job #1696033)
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:34:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cat1[a[i]][i]=cat1[a[i]][0];
^
user.cpp:34:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
cat1[a[i]][i]=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]][i]=cat2[b[i]][0];
^
user.cpp:40:36: warning: array subscript has type ‘char’ [-Wchar-subscripts]
aux=cat2[b[i]][i]=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);
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 828kb | OK | 10 |
2 | 0ms | 824kb | OK | 10 |
3 | 0ms | 908kb | OK | 10 |
4 | 0ms | 1548kb | OK | 10 |
5 | 8ms | 2104kb | OK | 10 |
6 | 12ms | 2060kb | OK | 10 |
7 | 12ms | 2812kb | OK | 10 |
8 | Depăşit | 2112kb | Time limit exceeded. | 0 |
9 | 12ms | 2680kb | OK | 10 |
10 | 32ms | 3512kb | OK | 10 |
Punctaj total | 90 |