Problem 3nplus1
User Caysson
Submission Time 2024-01-12 10:36:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:8: error: expected primary-expression before ‘%’ token
9 | if(x%%2 == 1){
| ^
3nplus1.cpp:14:8: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
14 | std:;cout << x;
| ^~~~
| std::cout
In file included from 3nplus1.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~