记录详情

Compile Error

foo.c: In function 'main':
foo.c:8:5: warning: implicit declaration of function 'fun' [-Wimplicit-function-declaration]
  {n=fun(n);
     ^~~
foo.c: In function 'fun':
foo.c:14:5: warning: type of 'n' defaults to 'int' [-Wimplicit-int]
 int fun (n)
     ^~~
foo.c:19:6: error: invalid suffix "n" on integer constant
    n=3n+1;
      ^~
foo.c: In function 'main':
foo.c:6:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&n);
     ^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
比赛
2021年中北算法竞赛队招新测试
语言
C
递交时间
2021-10-24 14:13:42
评测时间
2021-10-24 14:13:42
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes