记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:3: error: unknown type name 'using'
   using namespace std;
   ^~~~~
foo.c:5:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
   using namespace std;
                   ^~~
foo.c:6:5: warning: 'main' is normally a non-static function [-Wmain]
 int main(){
     ^~~~
foo.c: In function 'main':
foo.c:7:16: error: 'cin' undeclared (first use in this function); did you mean 'main'?
     int h,m,s; cin>>h>>m>>s;
                ^~~
                main
foo.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
foo.c:23:5: error: 'cout' undeclared (first use in this function)
     cout<<h<<" "<<m<<" "<<s;
     ^~~~
foo.c: In function 'main':
foo.c:25:1: error: expected declaration or statement at end of input
 }
 ^
At top level:
foo.c:6:5: warning: 'main' defined but not used [-Wunused-function]
 int main(){
     ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1000 OO1-1 时间类Time
语言
C
递交时间
2021-08-29 09:14:45
评测时间
2021-08-29 09:14:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes