Problem | 3nplus1 |
---|---|
User | adammmamammamamamaamamam |
Submission Time | 2023-04-15 23:00:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp:2:7: error: expected nested-name-specifier before ‘namepace’
2 | using namepace std;
| ^~~~~~~~
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:4:9: error: expected primary-expression before ‘<’ token
4 | int n =< 10000;
| ^
3nplus1.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 3nplus1.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
3nplus1.cpp:7:11: error: lvalue required as left operand of assignment
7 | if (n%2 =0) {
| ^
3nplus1.cpp:8:3: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout << n/2;
| ^~~~
| std::cout
In file included from 3nplus1.cpp:1:
/usr/includ