Problem | 3nplus1 |
---|---|
User | Justakiddo |
Submission Time | 2025-02-12 17:16:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin >> n;
| ^~~
3nplus1.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
3nplus1.cpp:10:13: error: ‘cout’ was not declared in this scope
10 | cout << n << " ";
| ^~~~
3nplus1.cpp:10:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3nplus1.cpp:13:13: error: ‘cout’ was not declared in this scope
13 | cout << n << " ";
| ^~~~
3nplus1.cpp:13:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?