/ Vijos /

记录详情

Compile Error

foo.cpp:31:12: warning: multi-character character constant [-Wmultichar]
     printf('%d',ans);
            ^
foo.cpp: In function 'int main()':
foo.cpp:31:20: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
     printf('%d',ans);
                    ^
In file included from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\cstdio:42:0,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\random:39,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_algo.h:65,
                 from c:\mingw\lib\gcc\mingw32\4.8.1\include\c++\algorithm:62,
                 from foo.cpp:1:
c:\mingw\include\stdio.h:293:37: error:   initializing argument 1 of 'int printf(const char*, ...)' [-fpermissive]
 _CRTIMP int __cdecl __MINGW_NOTHROW printf (const char*, ...);
                                     ^

信息

递交者
类型
递交
题目
P1022 Victoria的舞会2
语言
C++
递交时间
2016-11-14 21:29:44
评测时间
2016-11-14 21:29:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes