记录详情

Compile Error

foo.cc: In function 'int hwlength(int)':
foo.cc:38:9: warning: variable 'a' set but not used [-Wunused-but-set-variable]
     int a[10],i=0;
         ^
foo.cc: In function 'int main()':
foo.cc:68:5: error: redefinition of 'int main()'
 int main()
     ^~~~
foo.cc:4:5: note: 'int main()' previously defined here
 int main()
     ^~~~
foo.cc:70:15: warning: unused variable 'j' [-Wunused-variable]
     int a,b,i,j;
               ^
foo.cc:71:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&a,&b);
     ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
语言
C++
递交时间
2021-09-24 21:32:16
评测时间
2021-09-24 21:32:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes