Borderou de evaluare (job #3139375)
Utilizator | Data | 27 iunie 2023 18:57:01 | |
---|---|---|---|
Problema | Sortare prin comparare | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main(int, const char**)':
main.cpp:2:13: error: expected unqualified-id before string constant
2 | #define fin "algsort.in"
| ^~~~~~~~~~~~
main.cpp:34:12: note: in expansion of macro 'fin'
34 | ifstream fin(FIN);
| ^~~
main.cpp:3:14: error: expected unqualified-id before string constant
3 | #define fout "algsort.out"
| ^~~~~~~~~~~~~
main.cpp:35:12: note: in expansion of macro 'fout'
35 | ofstream fout(FOUT;
| ^~~~
main.cpp:37:6: error: invalid operands of types 'const char [11]' and 'int' to binary 'operator>>'
37 | fin>>n;
| ^~~
| |
| int
main.cpp:39:33: error: invalid operands of types 'const char [11]' and 'int' to binary 'operator>>'
39 | for(int i = 0; i < n; ++i) fin>>arr[i];
| ^~~~~~~~
| |
| int
main.cpp:43:34: error: invalid operands of types 'const char [12]' and 'int' to binary 'operator<<'
43 | for(int i = 0; i < n; ++i) fout<<arr[i]<<" ";
| ^~~~~~~~
| |
| int
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !