Pomidorai

Taškai: 0

Compile: FAIL

pomidorai.cpp:4:17: warning: character constant too long for its type ifstream in('pomidorai.in'); ^ pomidorai.cpp:5:18: warning: character constant too long for its type ofstream out('pomidorai.out'); ^ pomidorai.cpp: In function ‘int main()’: pomidorai.cpp:4:31: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive] ifstream in('pomidorai.in'); ^ In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:69:0, from pomidorai.cpp:1: /usr/include/c++/5/fstream:495:7: note: initializing argument 1 of ‘std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]’ basic_ifstream(const char* __s, ios_base::openmode __mode = ios_base::in) ^ pomidorai.cpp:5:33: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive] ofstream out('pomidorai.out'); ^ In file included from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:69:0, from pomidorai.cpp:1: /usr/include/c++/5/fstream:697:7: note: initializing argument 1 of ‘std::basic_ofstream<_CharT, _Traits>::basic_ofstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode]’ basic_ofstream(const char* __s, ^

nr.resulttimemessage