记录详情

Compile Error

foo.c:6:7: warning: return type of 'main' is not 'int' [-Wmain]
    6 | }void main(){int x,a,b,c;
      |       ^~~~
foo.c:6:7: error: conflicting types for 'main'; have 'void()'
foo.c:3:5: note: previous definition of 'main' with type 'int()'
    3 | int main()
      |     ^~~~
foo.c: In function 'main':
foo.c:8:1: error: 'cin' undeclared (first use in this function)
    8 | cin>>x;a=x/100;
      | ^~~
foo.c:8:1: note: each undeclared identifier is reported only once for each function it appears in
foo.c:12:1: error: 'cout' undeclared (first use in this function)
   12 | cout<<c*100+b*10+a<<endl;
      | ^~~~
foo.c:12:21: error: 'endl' undeclared (first use in this function)
   12 | cout<<c*100+b*10+a<<endl;
      |                     ^~~~
foo.c:12:1: error: expected declaration or statement at end of input
   12 | cout<<c*100+b*10+a<<endl;
      | ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
反序数字
语言
C
递交时间
2023-06-04 14:54:57
评测时间
2023-06-04 14:54:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes