Problem 3nplus1
User skibidininja98
Submission Time 2024-06-18 14:34:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:3:7: error: ‘cin’ is not a member of ‘std’
3 | std::cin >> x;
| ^~~
3nplus1.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main(){
3nplus1.cpp:9:20: error: expected ‘;’ before ‘{’ token
9 | else (x % 2 == 1){
| ^
| ;