Problem 3nplus1
User JAMALSGOODATROBOTICS
Submission Time 2025-01-15 21:01:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:5: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_studio(0);
| ^~~~~~~~
3nplus1.cpp:6:5: error: ‘cin_tie’ was not declared in this scope
6 | cin_tie(0);
| ^~~~~~~
3nplus1.cpp:8:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | 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:10:17: error: lvalue required as left operand of assignment
10 | if (n & 2 = 0){
| ^
3nplus1.cpp:11:14: error: ‘i’ was not declared in this scope
11 | for (i = 0; i != 1; i++){
| ^
3nplus1.cpp:12:13: error: ‘cout’ was not declared in this scope; did you