/ Vijos /

记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1898 学姐吃生鱼片
比赛
NOIP模拟赛 之 周五的夜晚
语言
C++
递交时间
2014-10-31 21:09:10
评测时间
2014-11-01 11:57:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes