Problem trivialexam_ex_ex
User PlayVoltz
Submission Time 2023-08-24 13:58:18
Score 0

Compile Error

trivialexam_ex_ex.cpp:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
1 | #inlcude <bits/stdc++.h>
| ^~~~~~~
| include
trivialexam_ex_ex.cpp: In function ‘int main()’:
trivialexam_ex_ex.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin>>n;
| ^~~
trivialexam_ex_ex.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #inlcude <bits/stdc++.h>
trivialexam_ex_ex.cpp:8:3: error: ‘cout’ was not declared in this scope
8 | cout<<1;
| ^~~~
trivialexam_ex_ex.cpp:8:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
trivialexam_ex_ex.cpp:11:3: error: ‘cout’ was not declared in this scope
11 | cout<<3;
| ^~~~
trivialexam_ex_ex.cpp:11:3: note: ‘std::cout’ is define