Problem 3nplus1
User blob
Submission Time 2023-11-10 10:56:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:13: error: no match for ‘operator+=’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
10 | cout << n+=3*n + 1;
| ~~~~~~~~~^~~~~~~~~
3nplus1.cpp:13:13: error: no match for ‘operator+=’ (operand types are ‘std::basic_ostream<char>’ and ‘int’)
13 | cout << n+=n/2;
| ~~~~~~~~~^~~~~