0_0_26637321_31897.cpp: In function 'int sum(int)':
0_0_26637321_31897.cpp:17:20: error: 'lowbit' was not declared in this scope
x-=lowbit(x);
^
0_0_26637321_31897.cpp: In function 'void add(int, int)':
0_0_26637321_31897.cpp:25:20: error: 'lowbit' was not declared in this scope
x+=lowbit(x);
^
0_0_26637321_31897.cpp: In function 'int main()':
0_0_26637321_31897.cpp:31:5: error: 'cin' was not declared in this scope
cin>>t;
^
0_0_26637321_31897.cpp:33:22: error: 'scanf' was not declared in this scope
scanf("%d",&n);
^
0_0_26637321_31897.cpp:34:29: error: 'memset' was not declared in this scope
memset(b,0,sizeof(b));
^
0_0_26637321_31897.cpp:39:27: error: 'sort' was not declared in this scope
sort(p+1,p+n+1,cmp);
^
0_0_26637321_31897.cpp:48:45: error: 'min' was not declared in this scope
p[i].x=min(p[i].x,n-p[i].x-i);
^
0_0_26637321_31897.cpp:81:47: error: 'printf' was not declared in this scope
printf("Case #%d: impossible\n",ii);
^
0_0_26637321_31897.cpp:83:34: error: 'printf' was not declared in this scope
printf("Case #%d:",ii);
^
0_0_26637321_31897.cpp:87:13: error: 'cout' was not declared in this scope
cout<<endl;
^
0_0_26637321_31897.cpp:87:19: error: 'endl' was not declared in this scope
cout<<endl;
^
|