input/code.cpp:4:1: error: expected unqualified-id before 'int'
4 | int prevB = 0;
| ^~~
input/code.cpp: In function 'int main()':
input/code.cpp:12:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
12 | cin >> x;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
from input/code.cpp:1:
/usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
input/code.cpp:21:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
21 | cin >> x;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:75,
from input/code.cpp:1:
/usr/include/c++/11/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input...