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_36530991_32544.cpp: In function 'int main()':
0_0_36530991_32544.cpp:44:13: error: 'i' was not declared in this scope
         for(i:ve) if(i-x>1) {ty kk;kk.j=i-x-1,kk.x=x+1;k.push_back(kk);x=i;}else x=i;
             ^
0_0_36530991_32544.cpp:44:77: error: expected primary-expression before 'else'
         for(i:ve) if(i-x>1) {ty kk;kk.j=i-x-1,kk.x=x+1;k.push_back(kk);x=i;}else x=i;
                                                                             ^
0_0_36530991_32544.cpp:44:77: error: expected ';' before 'else'
0_0_36530991_32544.cpp:44:77: error: expected primary-expression before 'else'
0_0_36530991_32544.cpp:44:77: error: expected ')' before 'else'
0_0_36530991_32544.cpp:44:77: error: expected primary-expression before 'else'
0_0_36530991_32544.cpp:54:13: error: 'i' was not declared in this scope
         for(i:k) sum+=i.j;
             ^
0_0_36530991_32544.cpp:56:9: error: expected primary-expression before 'int'
         int e=k[p-1].j,w=k[p-1].x;
         ^
0_0_36530991_32544.cpp:56:9: error: expected ')' before 'int'
0_0_36530991_32544.cpp:57:16: error: 'e' was not declared in this scope
         if(sum-e*2>=0) cout<<"YES\n";
                ^
0_0_36530991_32544.cpp:60: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-11-30 00:14:04, Gzip enabled