/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:17:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
In file included from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/string:54:0,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/locale_classes.h:42,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/ios_base.h:43,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ios:43,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/ostream:40,
                 from c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/iostream:40,
                 from foo.cpp:1:
c:\mingw32\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/basic_string.h:1293:7: error:   initializing argument 2 of 'std::basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::insert(std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _CharT*) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::basic_string<_CharT, _Traits, _Alloc> = std::basic_string<char>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = unsigned int]' [-fpermissive]

信息

递交者
类型
递交
题目
P1005 超长数字串
语言
C++
递交时间
2013-07-08 12:04:13
评测时间
2013-07-08 12:17:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes