Problem potatotree
User Shizhan
Submission Time 2023-03-22 17:17:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatotree.cpp: In function ‘int main()’:
potatotree.cpp:4:3: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
4 | cin >> n >> q;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from potatotree.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
potatotree.cpp:4:10: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
4 | cin >> n >> q;
| ^
| yn
potatotree.cpp:4:15: error: ‘q’ was not declared in this scope
4 | cin >> n >> q;
| ^
potatotree.cpp:5:3: error: ‘a’ was not declared in this scope
5 | a[3] = n;
| ^
potatotree.cpp:6:3: error: ‘b’ was not declared in this scope
6 | b[3] = q;