Problem 3nplus1
User playiprobro
Submission Time 2024-02-03 17:32:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp:1:2: error: invalid preprocessing directive #inculde; did you mean #include?
1 | #inculde <iostream>
| ^~~~~~~
| include
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:7: error: ‘cin’ is not a member of ‘std’
5 | std::cin >> x;
| ^~~
3nplus1.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inculde <iostream>
3nplus1.cpp:7:8: error: ‘cout’ is not a member of ‘std’
7 | std::cout << 1;
| ^~~~
3nplus1.cpp:7:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3nplus1.cpp:8:15: error: expected primary-expression before ‘!=’ token
8 | }else{while (!= 1){
| ^~
3nplus1.cpp:11:9: error: ‘cout’ is not a member of ‘std’
11 | std::cout << x;