Problem lvm
User mingging1748
Submission Time 2024-10-08 10:20:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lvm.cpp: In function ‘int main()’:
lvm.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> n;
| ^~~
lvm.cpp:5:5: error: ‘vector’ was not declared in this scope
5 | vector<string> instructions(n);
| ^~~~~~
lvm.cpp:5:12: error: ‘string’ was not declared in this scope
5 | vector<string> instructions(n);
| ^~~~~~
lvm.cpp:5:20: error: ‘instructions’ was not declared in this scope
5 | vector<string> instructions(n);
| ^~~~~~~~~~~~
lvm.cpp:7:9: error: ‘getline’ was not declared in this scope
7 | getline(cin, instructions[i]);
| ^~~~~~~
lvm.cpp:10:5: error: ‘stack’ was not declared in this scope
10 | stack<int> stk;
| ^~~~~
lvm.cpp:10:11: error: expected primary-expression before ‘int’
10 | stack<int> stk;
| ^~~
lvm.cpp:16:9