Borderou de evaluare (job #616927)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Adunare | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 nov. 2021 19:26:27 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:5: error: 'cin' was not declared in this scope
13 | cin>>a>>b;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:14:5: error: 'cout' was not declared in this scope
14 | cout<<sum(a,b);
| ^~~~
main.cpp:14:5: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?