Pomidorai
- [1] 2018-10-13 14:41 (0)
- [2] 2018-10-13 15:39 (0)
- [3] 2018-10-13 15:40 (0)
- [4] 2018-10-13 15:41 (100)
- [5] 2020-09-06 21:42 (0)
- [6] 2020-09-06 21:43 (0)
- [7] 2020-09-06 21:44 (0)
- [8] 2020-09-06 21:44 (100)
- [9] 2020-09-07 00:03 (90)
- [10] 2020-09-07 00:05 (90)
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. | result | time | message |
---|