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

Compile Error

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