Borderou de evaluare (job #683710)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Balaur (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 21 dec. 2022 22:16:13 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:2: error: invalid preprocessing directive #i; did you mean #if?
1 | #i#include <iostream>
| ^
| if
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'cin' was not declared in this scope
8 | cin>>n;
| ^~~
main.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 | #i#include <iostream>
main.cpp:14:5: error: 'cout' was not declared in this scope
14 | cout<<c-1;
| ^~~~
main.cpp:14:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?