F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-24 02:31:35, Gzip enabled