Borderou de evaluare (job #2976070)
Utilizator | Data | 8 februarie 2023 10:28:33 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
1 | #inlude <bits/stc++.h>
| ^~~~~~
| include
main.cpp: In function 'int main()':
main.cpp:5:3: error: 'ifstream' was not declared in this scope
5 | { ifstream f("euclid2.in");
| ^~~~~~~~
main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
+++ |+#include <fstream>
1 | #inlude <bits/stc++.h>
main.cpp:6:1: error: 'ofstream' was not declared in this scope
6 | ofstream g("euclid2.out");
| ^~~~~~~~
main.cpp:6:1: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
main.cpp:9:1: error: 'f' was not declared in this scope
9 | f>>t;
| ^
main.cpp:14:11: error: 'max' was not declared in this scope
14 | int m=max(a, b);
| ^~~
main.cpp:16:9: error: 'i' was not declared in this scope
16 | for(i=m;i<1;i--)
| ^
main.cpp:19:5: error: 'g' was not declared in this scope
19 | g<<r<<endl;
| ^
main.cpp:19:11: error: 'endl' was not declared in this scope
19 | g<<r<<endl;
| ^~~~
main.cpp:1:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
+++ |+#include <ostream>
1 | #inlude <bits/stc++.h>
main.cpp:22:1: error: 'g' was not declared in this scope
22 | g.close();
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !