/ Vijos /

记录详情

Compile Error

/in/foo.cc:31:8: warning: multi-character character constant [-Wmultichar]
 printf('%d',ans);
        ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:31:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
 printf('%d',ans);
                ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /in/foo.cc:2:
/usr/include/stdio.h:364:12: note:   initializing argument 1 of 'int printf(const char*, ...)'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~

信息

递交者
类型
递交
题目
P1022 Victoria的舞会2
语言
C++
递交时间
2021-12-05 15:49:03
评测时间
2021-12-05 15:49:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes