Problem mao
User Dolphy
Submission Time 2024-05-25 14:11:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mao.cpp: In function ‘void mao_to_cpp(int)’:
mao.cpp:2:15: error: ‘cout’ was not declared in this scope
2 | if (N == 1) cout << INT_MIN;
| ^~~~
mao.cpp:2:23: error: ‘INT_MIN’ was not declared in this scope
2 | if (N == 1) cout << INT_MIN;
| ^~~~~~~
mao.cpp:1:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
+++ |+#include <climits>
1 | void mao_to_cpp(int N) {
mao.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> c;
| ^~~
mao.cpp:6:5: error: ‘stack’ was not declared in this scope
6 | stack<int> s;
| ^~~~~
mao.cpp:6:11: error: expected primary-expression before ‘int’
6 | stack<int> s;
| ^~~
mao.cpp:7:5: error: ‘s’ was not declared in this scope
7 | s.push((int)c);
| ^
mao.cpp:2