记录详情

Compile Error

/in/foo.c:8:7: error: expected declaration specifiers or '...' before string constant
 scanf("%d %d",&x1,&k1);
       ^~~~~~~
/in/foo.c:8:15: error: expected declaration specifiers or '...' before '&' token
 scanf("%d %d",&x1,&k1);
               ^
/in/foo.c:8:19: error: expected declaration specifiers or '...' before '&' token
 scanf("%d %d",&x1,&k1);
                   ^
/in/foo.c:9:7: error: expected declaration specifiers or '...' before string constant
 scanf("%d %d",&x2,&k2);
       ^~~~~~~
/in/foo.c:9:15: error: expected declaration specifiers or '...' before '&' token
 scanf("%d %d",&x2,&k2);
               ^
/in/foo.c:9:19: error: expected declaration specifiers or '...' before '&' token
 scanf("%d %d",&x2,&k2);
                   ^
/in/foo.c:10:1: error: expected identifier or '(' before 'for'
 for(i=1;i<=k1;i++)
 ^~~
/in/foo.c:10:10: error: stray '\357' in program
 for(i=1;i<=k1;i++)
          ^
/in/foo.c:10:11: error: stray '\274' in program
 for(i=1;i<=k1;i++)
           ^
/in/foo.c:10:12: error: stray '\234' in program
 for(i=1;i<=k1;i++)
            ^
/in/foo.c:10:13: error: stray '\357' in program
 for(i=1;i<=k1;i++)
             ^
/in/foo.c:10:14: error: stray '\274' in program
 for(i=1;i<=k1;i++)
              ^
/in/foo.c:10:15: error: stray '\235' in program
 for(i=1;i<=k1;i++)
               ^
/in/foo.c:10:9: error: unknown type name 'i'
 for(i=1;i<=k1;i++)
         ^
/in/foo.c:10:20: error: stray '\357' in program
 for(i=1;i<=k1;i++)
                    ^
/in/foo.c:10:21: error: stray '\274' in program
 for(i=1;i<=k1;i++)
                     ^
/in/foo.c:10:22: error: stray '\213' in program
 for(i=1;i<=k1;i++)
                      ^
/in/foo.c:10:23: error: stray '\357' in program
 for(i=1;i<=k1;i++)
                       ^
/in/foo.c:10:24: error: stray '\274' in program
 for(i=1;i<=k1;i++)
                        ^
/in/foo.c:10:25: error: stray '\213' in program
 for(i=1;i<=k1;i++)
                         ^
/in/foo.c:10:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before ')' token
 for(i=1;i<=k1;i++)
                          ^
/in/foo.c:12:3: error: stray '\357' in program
 s1=s1*x1;
   ^
/in/foo.c:12:4: error: stray '\274' in program
 s1=s1*x1;
    ^
/in/foo.c:12:5: error: stray '\235' in program
 s1=s1*x1;
     ^
/in/foo.c:14:1: error: expected identifier or '(' before 'for'
 for(i=1;i<=k2;i++)
 ^~~
/in/foo.c:14:10: error: stray '\357' in program
 for(i=1;i<=k2;i++)
          ^
/in/foo.c:14:11: error: stray '\274' in program
 for(i=1;i<=k2;i++)
           ^
/in/foo.c:14:12: error: stray '\234' in program
 for(i=1;i<=k2;i++)
            ^
/in/foo.c:14:13: error: stray '\357' in program
 for(i=1;i<=k2;i++)
             ^
/in/foo.c:14:14: error: stray '\274' in program
 for(i=1;i<=k2;i++)
              ^
/in/foo.c:14:15: error: stray '\235' in program
 for(i=1;i<=k2;i++)
               ^
/in/foo.c:14:9: error: unknown type name 'i'
 for(i=1;i<=k2;i++)
         ^
/in/foo.c:14:20: error: stray '\357' in program
 for(i=1;i<=k2;i++)
                    ^
/in/foo.c:14:21: error: stray '\274' in program
 for(i=1;i<=k2;i++)
                     ^
/in/foo.c:14:22: error: stray '\213' in program
 for(i=1;i<=k2;i++)
                      ^
/in/foo.c:14:23: error: stray '\357' in program
 for(i=1;i<=k2;i++)
                       ^
/in/foo.c:14:24: error: stray '\274' in program
 for(i=1;i<=k2;i++)
                        ^
/in/foo.c:14:25: error: stray '\213' in program
 for(i=1;i<=k2;i++)
                         ^
/in/foo.c:14:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before ')' token
 for(i=1;i<=k2;i++)
                          ^
/in/foo.c:16:3: error: stray '\357' in program
 s2=s2*x2;
   ^
/in/foo.c:16:4: error: stray '\274' in program
 s2=s2*x2;
    ^
/in/foo.c:16:5: error: stray '\235' in program
 s2=s2*x2;
     ^
/in/foo.c:18:2: error: stray '\357' in program
 s=s1+s2;
  ^
/in/foo.c:18:3: error: stray '\274' in program
 s=s1+s2;
   ^
/in/foo.c:18:4: error: stray '\235' in program
 s=s1+s2;
    ^
/in/foo.c:18:1: error: unknown type name 's'
 s=s1+s2;
 ^
/in/foo.c:18:7: error: stray '\357' in program
 s=s1+s2;
       ^
/in/foo.c:18:8: error: stray '\274' in program
 s=s1+s2;
        ^
/in/foo.c:18:9: error: stray '\213' in program
 s=s1+s2;
         ^
/in/foo.c:18:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 's2'
 s=s1+s2;
          ^~
/in/foo.c:19:8: error: expected declaration specifiers or '...' before string constant
 printf("%d",s);
        ^~~~
/in/foo.c:19:13: error: expected declaration specifiers or '...' before 's'
 printf("%d",s);
             ^

信息

递交者
类型
递交
题目
P1024 OO6-2 高精度整数类的加法运算
语言
C
递交时间
2019-05-03 17:28:52
评测时间
2019-05-03 17:28:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes