Problem exam
User Tolo925kt
Submission Time 2026-02-12 16:24:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include bits/stdc++.h>
| ^~~~
exam.cpp: In function ‘int main()’:
exam.cpp:4:1: error: ‘cout’ was not declared in this scope
4 | cout << "Hello World/n";
| ^~~~
exam.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #include bits/stdc++.h>
exam.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> x
| ^~~
exam.cpp:6:2: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:10:1: error: ‘else’ without a previous ‘if’
10 | else if (x = 2) {
| ^~~~