/ Vijos /

记录详情

Compile Error

/in/foo.cc:27:8: warning: multi-character character constant [-Wmultichar]
  scand('%d',&d);
        ^~~~
/in/foo.cc:33:9: warning: multi-character character constant [-Wmultichar]
   scanf('%d',&t);
         ^~~~
/in/foo.cc:36:9: warning: multi-character character constant [-Wmultichar]
  printf('%d',minn);
         ^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:27:15: error: 'scand' was not declared in this scope
  scand('%d',&d);
               ^
/in/foo.cc:33:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   scanf('%d',&t);
                ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:433:12: note:   initializing argument 1 of 'int scanf(const char*, ...)'
 extern int scanf (const char *__restrict __format, ...) __wur;
            ^~~~~
/in/foo.cc:36:18: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
  printf('%d',minn);
                  ^
In file included from /usr/include/c++/6/cstdio:42:0,
                 from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:46,
                 from /in/foo.cc:1:
/usr/include/stdio.h:364:12: note:   initializing argument 1 of 'int printf(const char*, ...)'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~

信息

递交者
类型
自测
题目
P1979 信息传递
语言
C++
递交时间
2021-06-07 10:36:57
评测时间
2021-06-07 10:36:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes