记录详情

Compile Error

/in/foo.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
 include<stdio.h>
        ^
/in/foo.c: In function 'main':
/in/foo.c:17:2: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
  scanf("%d",&n);
  ^~~~~
/in/foo.c:17:2: warning: incompatible implicit declaration of built-in function 'scanf'
/in/foo.c:17:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
/in/foo.c:20:4: warning: implicit declaration of function 'gy' [-Wimplicit-function-declaration]
  j=gy(a[0],a[1]);
    ^~
/in/foo.c:23:2: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
  printf("%d",j);
  ^~~~~~
/in/foo.c:23:2: warning: incompatible implicit declaration of built-in function 'printf'
/in/foo.c:23:2: note: include '<stdio.h>' or provide a declaration of 'printf'

信息

递交者
类型
递交
题目
A6-4 最大公约数专题:多个数的最大公约数
比赛
中北 计算机2021级专业修读指导(3)
语言
C
递交时间
2021-12-16 20:53:39
评测时间
2021-12-16 20:53:39
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes