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;
^
|