Problem 3nplus1
User nguyendinhanh1508
Submission Time 2023-12-22 23:24:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp:1:1: error: expected unqualified-id before ‘while’
1 | while (n != 1) {
| ^~~~~
3nplus1.cpp:13:6: error: ‘cout’ in namespace ‘std’ does not name a type
13 | std::cout << 1 << std::endl;
| ^~~~
3nplus1.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | while (n != 1) {