0_0_20973533_4967.cpp:1:1: error: 'vector' does not name a type
vector<P>ans;
^
0_0_20973533_4967.cpp: In function 'bool solve(int, int*)':
0_0_20973533_4967.cpp:8:22: error: 'abs' was not declared in this scope
if(abs(a[i]>1))return false;
^
0_0_20973533_4967.cpp:11:13: error: 'ans' was not declared in this scope
ans.push_back(P(i+1,i));m++;
^
0_0_20973533_4967.cpp:11:34: error: 'P' was not declared in this scope
ans.push_back(P(i+1,i));m++;
^
0_0_20973533_4967.cpp:16:13: error: 'ans' was not declared in this scope
ans.push_back(P(i,i+1));m++;
^
0_0_20973533_4967.cpp:16:34: error: 'P' was not declared in this scope
ans.push_back(P(i,i+1));m++;
^
0_0_20973533_4967.cpp: In function 'int main()':
0_0_20973533_4967.cpp:29:18: error: 'scanf' was not declared in this scope
scanf("%d",&T);
^
0_0_20973533_4967.cpp:33:9: error: 'll' was not declared in this scope
ll sum=0;
^
0_0_20973533_4967.cpp:38:17: error: 'sum' was not declared in this scope
sum+=a[i];
^
0_0_20973533_4967.cpp:40:12: error: 'sum' was not declared in this scope
if(sum%n)puts("NO");
^
0_0_20973533_4967.cpp:40:27: error: 'puts' was not declared in this scope
if(sum%n)puts("NO");
^
0_0_20973533_4967.cpp:47:37: error: 'memcpy' was not declared in this scope
memcpy(b,a,sizeof(int)*n);
^
0_0_20973533_4967.cpp:49:17: error: 'ans' was not declared in this scope
m=0;ans.clear();
^
0_0_20973533_4967.cpp:54:54: error: 'P' was not declared in this scope
m=1;ans.clear();ans.push_back(P(n-1,0));
^
0_0_20973533_4967.cpp:65:27: error: 'puts' was not declared in this scope
puts("YES");
^
0_0_20973533_4967.cpp:66:32: error: 'printf' was not declared in this scope
printf("%d\n",m);
^
|