记录详情

Compile Error

foo.c: In function 'main':
foo.c:12:18: error: stray '\' in program
   12 |         printf(y1\n);
      |                  ^
foo.c:12:18: error: expected ')' before 'n'
   12 |         printf(y1\n);
      |               ~  ^~
      |                  )
foo.c:12:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   12 |         printf(y1\n);
      |                ^~
      |                |
      |                int
In file included from foo.c:1:
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
  356 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.c:13:18: error: stray '\' in program
   13 |         printf(y2\n);
      |                  ^
foo.c:13:18: error: expected ')' before 'n'
   13 |         printf(y2\n);
      |               ~  ^~
      |                  )
foo.c:13:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   13 |         printf(y2\n);
      |                ^~
      |                |
      |                int
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
  356 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
foo.c:14:18: error: stray '\' in program
   14 |         printf(y3\n);
      |                  ^
foo.c:14:18: error: expected ')' before 'n'
   14 |         printf(y3\n);
      |               ~  ^~
      |                  )
foo.c:14:16: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
   14 |         printf(y3\n);
      |                ^~
      |                |
      |                int
/nix/store/3w4yrspgcx1z9wi18rv0hbap4jjlhx4c-glibc-2.37-8-dev/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
  356 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
比赛
2023 程序设计与竞赛(作业1:见面赛)
语言
C
递交时间
2023-09-16 19:44:56
评测时间
2023-09-16 19:44:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes