记录详情

Compile Error

/in/foo.c:12:6: warning: return type of 'main' is not 'int' [-Wmain]
 void main()
      ^~~~
/in/foo.c: In function 'main':
/in/foo.c:18:13: error: expected ')' before 'gbs'
  printf(gys gbs);
             ^~~
/in/foo.c:18:9: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
  printf(gys gbs);
         ^~~
In file included from /in/foo.c:1:0:
/usr/include/stdio.h:364:12: note: expected 'const char * restrict' but argument is of type 'int'
 extern int printf (const char *__restrict __format, ...);
            ^~~~~~
/in/foo.c:14:14: warning: variable 'gbs' set but not used [-Wunused-but-set-variable]
  int A,B,gys,gbs;
              ^~~

信息

递交者
类型
自测
题目
P1079 xf1-2最大公倍数与最小公因数
语言
C
递交时间
2019-08-15 10:56:24
评测时间
2019-08-15 10:56:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes