Borderou de evaluare (job #3121736)

Utilizator andrei_botorogeanuBotorogeanu Andrei andrei_botorogeanu Data 15 aprilie 2023 08:52:57
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:3:27: error: expected ')' before ';' token 3 | #define FIN ("euclid2.in"); | ^ main.cpp:31:13: note: in expansion of macro 'FIN' 31 | freopen(FIN, "r", stdin); | ^~~ main.cpp:31:12: note: to match this '(' 31 | freopen(FIN, "r", stdin); | ^ main.cpp:31:16: error: expected primary-expression before ',' token 31 | freopen(FIN, "r", stdin); | ^ main.cpp:4:29: error: expected ')' before ';' token 4 | #define FOUT ("euclid2.out"); | ^ main.cpp:32:13: note: in expansion of macro 'FOUT' 32 | freopen(FOUT, "w", stout); | ^~~~ main.cpp:32:12: note: to match this '(' 32 | freopen(FOUT, "w", stout); | ^ main.cpp:32:17: error: expected primary-expression before ',' token 32 | freopen(FOUT, "w", stout); | ^ main.cpp:32:24: error: 'stout' was not declared in this scope; did you mean 'stdout'? 32 | freopen(FOUT, "w", stout); | ^~~~~ | stdout main.cpp:34:5: error: 'fin' was not declared in this scope 34 | fin>>n; | ^~~ main.cpp:38:5: error: 'fout' was not declared in this scope 38 | fout<<euclid(a,b)<<"\n"; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?