Borderou de evaluare (job #3121735)
Utilizator | Data | 15 aprilie 2023 08:51:25 | |
---|---|---|---|
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:31:13: error: 'FIN' was not declared in this scope
31 | freopen(FIN, "r", stdin);
| ^~~
main.cpp:32:13: error: 'FOUT' was not declared in this scope
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:3:14: warning: statement has no effect [-Wunused-value]
3 | #define fin ("euclid2.in");
| ~^~~~~~~~~~~~~
main.cpp:34:5: note: in expansion of macro 'fin'
34 | fin>>n;
| ^~~
main.cpp:34:8: error: expected primary-expression before '>>' token
34 | fin>>n;
| ^~
main.cpp:3:14: warning: statement has no effect [-Wunused-value]
3 | #define fin ("euclid2.in");
| ~^~~~~~~~~~~~~
main.cpp:37:5: note: in expansion of macro 'fin'
37 | fin>>a>>b;
| ^~~
main.cpp:37:8: error: expected primary-expression before '>>' token
37 | fin>>a>>b;
| ^~
main.cpp:4:15: warning: statement has no effect [-Wunused-value]
4 | #define fout ("euclid2.out");
| ~^~~~~~~~~~~~~~
main.cpp:38:5: note: in expansion of macro 'fout'
38 | fout<<euclid(a,b)<<"\n";
| ^~~~
main.cpp:38:9: error: expected primary-expression before '<<' token
38 | fout<<euclid(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 !