Borderou de evaluare (job #789478)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Asort (baraj gimnaziu) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 oct. 2024 22:37:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:47:9: error: invalid use of non-static member function 'void std::basic_ifstream<_CharT, _Traits>::close() [with _CharT = char; _Traits = std::char_traits<char>]'
47 | fin.close;
| ~~~~^~~~~
In file included from /usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/i686-pc-linux-gnu/bits/stdc++.h:141,
from main.cpp:1:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:737:7: note: declared here
737 | close()
| ^~~~~
main.cpp:48:10: error: invalid use of non-static member function 'void std::basic_ofstream<_CharT, _Traits>::close() [with _CharT = char; _Traits = std::char_traits<char>]'
48 | fout.close;
| ~~~~~^~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:1000:7: note: declared here
1000 | close()
| ^~~~~