/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:9: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    6 |  printf('1')
      |         ^~~
      |         |
      |         int
In file included from /usr/include/stdio.h:867,
                 from foo.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:105:32: note: expected 'const char * restrict' but argument is of type 'int'
  105 | printf (const char *__restrict __fmt, ...)
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
foo.c:6:2: warning: format not a string literal and no format arguments [-Wformat-security]
    6 |  printf('1')
      |  ^~~~~~
foo.c:6:13: error: expected ';' before '}' token
    6 |  printf('1')
      |             ^
      |             ;
    7 | }
      | ~            
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1032 循环
语言
C
递交时间
2022-03-06 18:28:10
评测时间
2022-03-06 18:28:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes