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_36530921_9535.cpp: In function 'int main()':
0_0_36530921_9535.cpp:45:13: error: 'i' was not declared in this scope
         for(i:ve) if(i-x>1) k.push_back(ty{i-x-1,x+1}),x=i;else x=i;
             ^
0_0_36530921_9535.cpp:45:54: error: expected primary-expression before ')' token
         for(i:ve) if(i-x>1) k.push_back(ty{i-x-1,x+1}),x=i;else x=i;
                                                      ^
0_0_36530921_9535.cpp:45:54: error: expected ';' before ')' token
0_0_36530921_9535.cpp:45:55: error: expected primary-expression before ',' token
         for(i:ve) if(i-x>1) k.push_back(ty{i-x-1,x+1}),x=i;else x=i;
                                                       ^
0_0_36530921_9535.cpp:45:60: error: 'else' without a previous 'if'
         for(i:ve) if(i-x>1) k.push_back(ty{i-x-1,x+1}),x=i;else x=i;
                                                            ^
0_0_36530921_9535.cpp:45:67: error: 'i' was not declared in this scope
         for(i:ve) if(i-x>1) k.push_back(ty{i-x-1,x+1}),x=i;else x=i;
                                                                   ^
0_0_36530921_9535.cpp:53:14: error: expected ';' before ':' token
         for(i:k) sum+=i.j;
              ^
0_0_36530921_9535.cpp:55:9: error: expected primary-expression before 'int'
         int e=k[p-1].j,w=k[p-1].x;
         ^
0_0_36530921_9535.cpp:55:9: error: expected ')' before 'int'
0_0_36530921_9535.cpp:56:16: error: 'e' was not declared in this scope
         if(sum-e*2>=0) cout<<"YES\n";
                ^
0_0_36530921_9535.cpp:59:33: error: 'w' was not declared in this scope
             for(auto i:ve) if(i<w)q++;else break;
                                 ^


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-29 11:22:17, Gzip enabled