Problem pythonlist
User Mojangstudios
Submission Time 2026-04-24 20:23:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pythonlist.cpp: In function ‘int main()’:
pythonlist.cpp:9:9: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermissive]
9 | if (r="1";){
| ^~~
| |
| const char*
pythonlist.cpp:9:13: error: expected primary-expression before ‘)’ token
9 | if (r="1";){
| ^
pythonlist.cpp:14:10: error: invalid use of member function ‘bool std::stack<_Tp, _Sequence>::empty() const [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]’ (did you forget the ‘()’ ?)
14 | if (s.empty==true;)
| ~~^~~~~
| ()
pythonlist.cpp:14:22: error: expected primary-expression before ‘)’ token
14 | if (s.empty==true;)
| ^