Problem mao
User AlphanumericUsername
Submission Time 2024-05-24 21:38:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mao.cpp: In function ‘void mao_to_cpp(int)’:
mao.cpp:11:7: error: ‘intr’ was not declared in this scope; did you mean ‘int’?
11 | stack<intr> s;
| ^~~~
| int
mao.cpp:11:11: error: template argument 1 is invalid
11 | stack<intr> s;
| ^
mao.cpp:11:11: error: template argument 2 is invalid
mao.cpp:12:3: error: request for member ‘push’ in ‘s’, which is of non-class type ‘int’
12 | s.push((int)c);
| ^~~~
mao.cpp:13:3: error: request for member ‘push’ in ‘s’, which is of non-class type ‘int’
13 | s.push(s.top());
| ^~~~
mao.cpp:13:10: error: request for member ‘top’ in ‘s’, which is of non-class type ‘int’
13 | s.push(s.top());
| ^~~
mao.cpp:14:3: error: request for member ‘push’ in ‘s’, which is of non-class type ‘int’
14 | s.push(64);
| ^~~~
mao.cpp:15:9: error: request for member ‘top’ in ‘s’, which is of non-class typ