记录详情

Compile Error

foo.cc: In function 'void fun1(int, int, int*)':
foo.cc:26:16: error: return-statement with a value, in function returning 'void' [-fpermissive]
   26 | if(m>n) return 0;
      |                ^
foo.cc:30:8: error: return-statement with a value, in function returning 'void' [-fpermissive]
   30 | return k;
      |        ^
foo.cc: At global scope:
foo.cc:32:1: error: '::main' must return 'int'
   32 | void main()
      | ^~~~
foo.cc: In function 'int main()':
foo.cc:40:22: error: 'O' was not declared in this scope
   40 | k=fun1(a[i],a[i+1],b[O]);
      |                      ^
foo.cc:45:9: error: lvalue required as left operand of assignment
   45 | if(j%10=0) prinff("\n");
      |         ^
foo.cc:45:12: error: 'prinff' was not declared in this scope; did you mean 'printf'?
   45 | if(j%10=0) prinff("\n");
      |            ^~~~~~
      |            printf
foo.cc:35:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   35 | scanf("%d",&n);
      | ~~~~~^~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
8-1 改错题
语言
C++
递交时间
2022-07-10 15:29:15
评测时间
2022-07-10 15:29:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes