Borderou de evaluare (job #584080)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Bip | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 3 mar. 2021 12:17:28 | 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("bip.out")
| ^~~~~~~~
main.cpp:11:12: error: 'a' was not declared in this scope
11 | cin >> a;
| ^
main.cpp:12:5: error: 'mult' was not declared in this scope
12 | mult=a;
| ^~~~
main.cpp:15:7: error: 'cm' was not declared in this scope; did you mean 'c2'?
15 | cm=mult;
| ^~
| c2
main.cpp:16:7: error: 'ok' was not declared in this scope
16 | ok=0;
| ^~
main.cpp:29:11: error: 'cnt' was not declared in this scope; did you mean 'cnt2'?
29 | cnt++;
| ^~~
| cnt2
main.cpp:32:22: error: 'cnt' was not declared in this scope; did you mean 'cnt2'?
32 | c2=ult; cnt2=cnt;
| ^~~
| cnt2
main.cpp:33:9: error: 'cout' was not declared in this scope
33 | cout << cnt2 << " " << c2 << " " << cnt1 << " " << c1;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:36:9: error: 'cout' was not declared in this scope
36 | cout << -1;
| ^~~~
main.cpp:36:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?