记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:9: error: 'y1' undeclared (first use in this function); did you mean 'x1'?
    6 |         y1=x1+x2;
      |         ^~
      |         x1
foo.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:9: error: 'y2' undeclared (first use in this function); did you mean 'x2'?
    7 |         y2=x1*x2;
      |         ^~
      |         x2
foo.c:8:9: error: 'y3' undeclared (first use in this function)
    8 |         y3=x1%x2;
      |         ^~
foo.c:9:40: error: expected ';' before 'return'
    9 |         printf("%d","%d","%d",y1,y2,y3)
      |                                        ^
      |                                        ;
   10 |                 return 0
      |                 ~~~~~~                  
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1078 xf1-1两数和、积、余
语言
C
递交时间
2023-09-16 13:46:07
评测时间
2023-09-16 13:46:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes