记录详情

Compile Error

foo.c: In function 'main':
foo.c:4:2: error: 'inta' undeclared (first use in this function); did you mean 'int'?
    4 | {inta,b
      |  ^~~~
      |  int
foo.c:4:2: note: each undeclared identifier is reported only once for each function it appears in
foo.c:4:7: error: 'b' undeclared (first use in this function)
    4 | {inta,b
      |       ^
foo.c:4:6: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    4 | {inta,b
      |      ^
foo.c:4:8: error: expected ';' before 'printf'
    4 | {inta,b
      |        ^
      |        ;
    5 |         printf("请输入");
      |         ~~~~~~
foo.c:10:24: error: stray '#' in program
   10 |         printf("%d\n",a#b);
      |                        ^
foo.c:10:23: error: 'a' undeclared (first use in this function)
   10 |         printf("%d\n",a#b);
      |                       ^
foo.c:10:24: error: expected ')' before 'b'
   10 |         printf("%d\n",a#b);
      |               ~        ^~
      |                        )
foo.c:12:18: error: 'return0' undeclared (first use in this function)
   12 |                  return0
      |                  ^~~~~~~
foo.c:12:25: error: expected ';' before '}' token
   12 |                  return0
      |                         ^
      |                         ;
......
   16 | }
      | ~                        
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 10:24:02
评测时间
2022-08-27 10:24:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes