Problem ballot
User huangchengcheng
Submission Time 2026-04-24 21:41:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ballot.cpp: In function ‘int main()’:
ballot.cpp:23:25: error: expected ‘)’ before ‘{’ token
23 | for (int i=0;i<c;i++{
| ~ ^
| )
ballot.cpp:25:15: error: ‘Y’ was not declared in this scope
25 | cin >>Y;
| ^
ballot.cpp:37:20: error: no matching function for call to ‘end()’
37 | if(lb!=end()){
| ^
In file included from /usr/include/c++/9/bits/range_access.h:36,
from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:3