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