Borderou de evaluare (job #2605101)
Utilizator | Data | 24 aprilie 2020 13:56:28 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:17: warning: missing terminating " character
std::ifstream f("euclid2.in);
^
main.cpp:4:17: error: missing terminating " character
std::ifstream f("euclid2.in);
^~~~~~~~~~~~~
main.cpp:5:17: warning: missing terminating " character
std::ofstream g("euclid2.out);
^
main.cpp:5:17: error: missing terminating " character
std::ofstream g("euclid2.out);
^~~~~~~~~~~~~~
main.cpp:8:1: error: expected ')' before '{' token
{
^
main.cpp:8:1: error: expected ')' before '{' token
main.cpp: In function 'std::ifstream f(std::ofstream (*)(int (*)(int, int)))':
main.cpp:9:8: error: 'b' was not declared in this scope
if(b==0)
^
main.cpp:10:14: error: 'a' was not declared in this scope
return a;
^
main.cpp:12:23: error: 'a' was not declared in this scope
return Cmmdc(b, a%b);
^
main.cpp:12:26: error: 'Cmmdc' was not declared in this scope
return Cmmdc(b, a%b);
^
main.cpp: In function 'void file_p()':
main.cpp:18:5: error: 'f' is not a member of 'std'
std::f>>T;
^~~
main.cpp:18:5: note: suggested alternative:
main.cpp:4:15: note: 'f'
std::ifstream f("euclid2.in);
^
main.cpp:19:11: error: 'f' is not a member of 'std'
while(std::f>>a>>b)
^~~
main.cpp:19:11: note: suggested alternative:
main.cpp:4:15: note: 'f'
std::ifstream f("euclid2.in);
^
main.cpp:20:9: error: 'g' is not a member of 'std'
std::g<<Cmmdc(a,b)<<"\n";
^~~
main.cpp:20:26: error: 'Cmmdc' was not declared in this scope
std::g<<Cmmdc(a,b)<<"\n";
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !