记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:2: error: unknown type name 'lomg'
  lomg x,y,m[100];
  ^~~~
/in/foo.c:11:20: error: expected ')' before ';' token
   scanf("%ld",&m[k];
                    ^
/in/foo.c:11:12: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'int *' [-Wformat=]
   scanf("%ld",&m[k];
            ^
/in/foo.c:12:5: error: expected ';' before '}' token
     }
     ^
/in/foo.c:18:8: error: stray '\357' in program
   x=gcd(x,y);
        ^
/in/foo.c:18:9: error: stray '\274' in program
   x=gcd(x,y);
         ^
/in/foo.c:18:10: error: stray '\210' in program
   x=gcd(x,y);
          ^
/in/foo.c:18:4: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
   x=gcd(x,y);
    ^
/in/foo.c:18:11: error: expected ';' before 'x'
   x=gcd(x,y);
           ^
/in/foo.c:18:14: error: expected statement before ')' token
   x=gcd(x,y);
              ^
/in/foo.c:7:9: warning: variable 'y' set but not used [-Wunused-but-set-variable]
  lomg x,y,m[100];
         ^

信息

递交者
类型
递交
题目
5-3 最大公约数
比赛
2023 程序设计与竞赛(作业3:中秋和国庆)
语言
C
递交时间
2023-10-01 18:38:11
评测时间
2023-10-01 18:38:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes