Borderou de evaluare (job #750881)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Invector (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 dec. 2023 12:43:48 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:1: error: expected ',' or ';' before 'ofstream'
4 | ofstream out("invector.out")
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:20:5: error: 'cin' was not declared in this scope
20 | cin>>n;
| ^~~
main.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include<fstream>
+++ |+#include <iostream>
2 | using namespace std;
main.cpp:23:5: error: 'inv' was not declared in this scope; did you mean 'int'?
23 | inv( 0, n-1, v );
| ^~~
| int
main.cpp:25:9: error: 'cout' was not declared in this scope
25 | cout<<v[i]<<" ";
| ^~~~
main.cpp:25:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?