Borderou de evaluare (job #2979167)

Utilizator FishyYoruCojocinescu Andreea Ayana FishyYoru Data 14 februarie 2023 20:09:20
Problema Algoritmul lui Euclid extins Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:14: warning: missing terminating " character 11 | ifstream fin("euclid3.in); | ^ main.cpp:11:14: error: missing terminating " character 11 | ifstream fin("euclid3.in); | ^~~~~~~~~~~~~ main.cpp:12:14: error: expected ',' or '...' before '(' token 12 | ofstream fout("euclid3.out"); | ^ main.cpp:12:29: error: expected ')' before ';' token 12 | ofstream fout("euclid3.out"); | ^ | ) main.cpp:11:13: note: to match this '(' 11 | ifstream fin("euclid3.in); | ^ main.cpp: In function 'void euclid(long long int, long long int, long long int, long long int, long long int)': main.cpp:20:12: error: expected ';' before '}' token 20 | y=1 | ^ | ; 21 | } | ~ main.cpp: In function 'int main()': main.cpp:32:11: error: 'n' was not declared in this scope 32 | fin>>n; | ^ main.cpp:36:13: error: invalid operands of types 'std::ifstream(std::ofstream)' {aka 'std::basic_ifstream<char>(std::basic_ofstream<char>)'} and 'int' to binary 'operator>>' 36 | fin >>a>>b>>c; | ~~~ ^~~ | | | | | int | std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)} main.cpp:40:13: error: 'fout' was not declared in this scope 40 | fout<<"0 0"<<"\n"; | ^~~~ main.cpp:44:13: error: 'fout' was not declared in this scope 44 | fout << x * c / d << ' ' << y * c / d << '\n'; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?