foo.cpp:6:9: error: empty character constant
foo.cpp: In function 'bool judge(std::string, std::string, int)':
foo.cpp:16:12: warning: comparison with string literal results in unspecified behaviour [-Waddress]
foo.cpp:16:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
foo.cpp: In function 'void operate(std::string, int, int)':
foo.cpp:24:9: error: expected '(' before 'op'
foo.cpp: In function 'void bfs(std::string, int, int, int, int)':
foo.cpp:48:27: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'int' for argument '2' to 'void operate(std::string, int, int)'
foo.cpp:49:14: error: too few arguments to function 'bool judge(std::string, std::string, int)'
foo.cpp:11:6: note: declared here
foo.cpp:53:18: error: expected primary-expression before ')' token
foo.cpp:55:24: error: cannot convert 'std::string {aka std::basic_string<char>}' to 'int' for argument '2' to 'void bfs(std::string, int, int, int, int)'
foo.cpp: In function 'int main()':
foo.cpp:68:25: error: no matching function for call to 'std::basic_istream<char>::getline()'
foo.cpp:68:25: note: candidates are:
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:599:5: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize, std::basic_istream<_CharT, _Traits>::char_type) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::char_type = char, std::streamsize = int]
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:599:5: note: candidate expects 3 arguments, 0 provided
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:408:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>, std::basic_istream<_CharT, _Traits>::char_type = char, std::streamsize = int]
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:408:7: note: candidate expects 2 arguments, 0 provided
foo.cpp:70:16: error: 'K' was not declared in this scope
foo.cpp:72:25: error: no matching function for call to 'std::basic_istream<char>::getline()'
foo.cpp:72:25: note: candidates are:
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:599:5: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize, std::basic_istream<_CharT, _Traits>::char_type) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::char_type = char, std::streamsize = int]
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:599:5: note: candidate expects 3 arguments, 0 provided
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:408:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::getline(std::basic_istream<_CharT, _Traits>::char_type*, std::streamsize) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>, std::basic_istream<_CharT, _Traits>::char_type = char, std::streamsize = int]
c:\mingw32\bin\../lib/gcc/mingw32/4.6.1/include/c++/istream:408:7: note: candidate expects 2 arguments, 0 provided