Borderou de evaluare (job #701814)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Sumacifre (clasa a 5-a) | Compilator | cpp-32 |
Rundă | superoji1 | Status | evaluat |
Dată | 6 mar. 2023 17:10:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:8:5: error: expected ',' or ';' before 'ofstream'
8 | ofstream cout("sumacifre.out");
| ^~~~~~~~
main.cpp:18:5: error: 'cout' was not declared in this scope
18 | cout<<sum;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |