Problem exam
User Foonaicode5
Submission Time 2026-04-17 10:43:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

exam.cpp:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
1 | #inclue <bits/stdc++.h>
| ^~~~~~
| include
exam.cpp: In function ‘int main()’:
exam.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
exam.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inclue <bits/stdc++.h>
exam.cpp:8:3: error: ‘cout’ was not declared in this scope
8 | cout << "Hello World";
| ^~~~
exam.cpp:8:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
exam.cpp:14:3: error: ‘cout’ was not declared in this scope
14 | cout << a[0] * a[1];
| ^~~~
exam.cpp:14:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?