Problem smurf
User Daddy
Submission Time 2023-11-20 11:20:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurf.cpp:2:7: error: expected nested-name-specifier before ‘namesapce’
2 | using namesapce std;
| ^~~~~~~~~
smurf.cpp: In function ‘int main()’:
smurf.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin>>n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from smurf.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
smurf.cpp:15:2: error: expected ‘}’ before ‘else’
15 | else{
| ^~~~
smurf.cpp:9:13: note: to match this ‘{’
9 | }if(n%2==1){
| ^
smurf.cpp:21:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
21 | cout<<a[i]<<" ";
| ^~~~
| std::cout
In file included from /usr/include/x86_