记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'printf'
    6 |     printf("请输入x1:,x2:");
      |     ^~~~~~
foo.c:7:12: error: 'y1' undeclared (first use in this function); did you mean 'x1'?
    7 |            y1=x1+x2;
      |            ^~
      |            x1
foo.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:18: error: 'x2' undeclared (first use in this function); did you mean 'x1'?
    7 |            y1=x1+x2;
      |                  ^~
      |                  x1
foo.c:8:12: error: 'y2' undeclared (first use in this function)
    8 |            y2=x1*x2;
      |            ^~
foo.c:9:12: error: 'y3' undeclared (first use in this function)
    9 |            y3=x1%x2;
      |            ^~
foo.c:10:25: error: expected ')' before ';' token
   10 |            printf(("y1");
      |                  ~      ^
      |                         )
foo.c:12:25: error: expected ';' before '}' token
   12 |            printf("y3");
      |                         ^
      |                         ;
   13 | }
      | ~                        
[Hydro](https://hydro.ac)提供评测服务

信息

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