Borderou de evaluare (job #541539)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Piramida1 (clasa a 6-a) | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 11 mar. 2020 13:23:39 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:1: error: expected ',' or ';' before 'ofstream'
5 | ofstream cout("piramida1.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:17:13: error: 'cout' was not declared in this scope
17 | cout<<ch;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
1 | #include <fstream>
+++ |+#include <iostream>
2 |
main.cpp:20:13: error: 'cout' was not declared in this scope
20 | cout<<ch;
| ^~~~
main.cpp:20:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:29:13: error: 'cout' was not declared in this scope
29 | cout<<" ";
| ^~~~
main.cpp:29:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:31:13: error: 'cout' was not declared in this scope
31 | cout<<v[i]<<" ";
| ^~~~
main.cpp:31:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:41:9: error: 'cout' was not declared in this scope
41 | cout<<'\n';
| ^~~~
main.cpp:41:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
main.cpp:9:15: warning: unused variable 'pozi' [-Wunused-variable]
9 | int poz=0,pozi=1,i,cntz=0,cif;
| ^~~~