记录详情

Compile Error

foo.c: In function ‘main’:
foo.c:7:16: warning: zero-length gnu_printf format string [-Wformat-zero-length]
    7 |         printf("");
      |                ^~
foo.c:9:16: warning: zero-length gnu_printf format string [-Wformat-zero-length]
    9 |         printf("");
      |                ^~
foo.c:11:19: error: ‘std’ undeclared (first use in this function)
   11 |         c=(a1*a2)/std::__gcd(a1,a2);
      |                   ^~~
foo.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
foo.c:11:22: error: expected ‘;’ before ‘:’ token
   11 |         c=(a1*a2)/std::__gcd(a1,a2);
      |                      ^
      |                      ;
foo.c:17:14: error: expected ‘;’ before ‘:’ token
   17 |         g=std::__gcd(f,c);
      |              ^
      |              ;
foo.c:6:25: warning: unused variable ‘sum’ [-Wunused-variable]
    6 |         int b1,a1,b2,a2,sum,c,d,e,f,g;
      |                         ^~~

信息

递交者
类型
自测
题目
A6-2 最大公约数专题:分数的加法
语言
C
递交时间
2024-08-18 17:12:19
评测时间
2024-08-18 17:12:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes