/ Vijos /

记录详情

Compile Error

/in/foo.cc:31:8: warning: multi-character character constant [-Wmultichar]
 printf('%d',ans);
        ^~~~
/in/foo.cc:1:1: error: 'include' does not name a type
 include <algorithm>
 ^~~~~~~
/in/foo.cc:4:14: error: 'std::min' has not been declared
 using std :: min;
              ^~~
/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++
递交时间
2018-02-20 16:22:55
评测时间
2018-02-20 16:22:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes