记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:5: error: 'intx1' undeclared (first use in this function); did you mean 'int'?
    5 |     intx1=0;
      |     ^~~~~
      |     int
foo.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:9: error: 'intx2' undeclared (first use in this function); did you mean 'int'?
    6 |         intx2=0;
      |         ^~~~~
      |         int
foo.c:8:21: error: 'x1' undeclared (first use in this function)
    8 |         scanf("%d",&x1);
      |                     ^~
foo.c:10:21: error: 'x2' undeclared (first use in this function)
   10 |         scanf("%d",&x2);
      |                     ^~
foo.c:11:9: error: 'inty1' undeclared (first use in this function); did you mean 'int'?
   11 |         inty1=x1+x2;
      |         ^~~~~
      |         int
foo.c:12:9: error: 'inty2' undeclared (first use in this function); did you mean 'int'?
   12 |         inty2=x1*x2;
      |         ^~~~~
      |         int
foo.c:13:9: error: 'inty3' undeclared (first use in this function); did you mean 'int'?
   13 |         inty3=x1%x2;
      |         ^~~~~
      |         int
foo.c:14:26: error: 'y1' undeclared (first use in this function)
   14 |         printf("y1=%d\n",y1);
      |                          ^~
foo.c:15:26: error: 'y2' undeclared (first use in this function)
   15 |         printf("y2=%d\n",y2);
      |                          ^~
foo.c:16:26: error: 'y3' undeclared (first use in this function)
   16 |         printf("y3=%d\n",y3);
      |                          ^~
foo.c:18:17: error: expected ';' before '}' token
   18 |         return 0
      |                 ^
      |                 ;
   19 | }
      | ~                
[Hydro](https://hydro.ac)提供评测服务

信息

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