Borderou de evaluare (job #765623)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Minnrk (clasa a 5-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 29 feb. 2024 20:48:51 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:30:7: error: invalid use of non-static member function 'void std::basic_ifstream<_CharT, _Traits>::close() [with _CharT = char; _Traits = std::char_traits<char>]'
30 | f.close;
| ~~^~~~~
In file included from main.cpp:2:
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:737:7: note: declared here
737 | close()
| ^~~~~
main.cpp:31:7: error: invalid use of non-static member function 'void std::basic_ofstream<_CharT, _Traits>::close() [with _CharT = char; _Traits = std::char_traits<char>]'
31 | g.close;
| ~~^~~~~
/usr/lib/gcc/i686-pc-linux-gnu/13/include/g++-v13/fstream:1000:7: note: declared here
1000 | close()
| ^~~~~