记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:23: error: stray '\357' in program
     int x1,x2,y1,y2,y3;
                       ^
/in/foo.c:5:24: error: stray '\274' in program
     int x1,x2,y1,y2,y3;
                        ^
/in/foo.c:5:25: error: stray '\233' in program
     int x1,x2,y1,y2,y3;
                         ^
/in/foo.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
   scanf("%d %d" &x1 &x2);
   ^~~~~
/in/foo.c:7:18: warning: format '%d' expects a matching 'int' argument [-Wformat=]
      printf("y1=%d,y1=x1+x2\n");
                  ^
/in/foo.c:8:18: warning: format '%d' expects a matching 'int' argument [-Wformat=]
      printf("y2=%d,y2=x1*x2\n");
                  ^
/in/foo.c:9:18: warning: format '%d' expects a matching 'int' argument [-Wformat=]
      printf("y3=%d,y3=x1%x2\n");
                  ^
/in/foo.c:9:26: warning: format '%x' expects a matching 'unsigned int' argument [-Wformat=]
      printf("y3=%d,y3=x1%x2\n");
                          ^
/in/foo.c:11:1: error: expected ';' before '}' token
 }
 ^
/in/foo.c:5:18: warning: unused variable 'y2' [-Wunused-variable]
     int x1,x2,y1,y2,y3;
                  ^~
/in/foo.c:5:15: warning: unused variable 'y1' [-Wunused-variable]
     int x1,x2,y1,y2,y3;
               ^~
/in/foo.c:5:12: warning: unused variable 'x2' [-Wunused-variable]
     int x1,x2,y1,y2,y3;
            ^~
/in/foo.c:5:9: warning: unused variable 'x1' [-Wunused-variable]
     int x1,x2,y1,y2,y3;
         ^~

信息

递交者
类型
自测
题目
P1078 xf1-1两数和、积、余
语言
C
递交时间
2019-08-15 08:32:18
评测时间
2019-08-15 08:32:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes