Problem xmas
User 0ncarat
Submission Time 2024-04-27 09:31:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:5:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin>>n;
| ^~~
| std::cin
In file included from xmas.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
xmas.cpp:12:12: error: expected unqualified-id before ‘=’ token
12 | for(int=0;i<n;i++){
| ^
xmas.cpp:12:12: error: expected ‘;’ before ‘=’ token
12 | for(int=0;i<n;i++){
| ^
| ;
xmas.cpp:12:12: error: expected primary-expression before ‘=’ token
xmas.cpp:12:15: error: ‘i’ was not declared in this scope
12 | for(int=0;i<n;i++){
| ^
xmas.cpp:12:18: error: expected ‘)’ before ‘;’ token
12 | for(int=0;i<n;i++){
| ~ ^
|