记录详情

Compile Error

foo.cc: In function 'void solve()':
foo.cc:7:5: error: 'string' was not declared in this scope
     string s;cin>>s;
     ^~~~~~
foo.cc:7:5: note: suggested alternative: 'struct'
     string s;cin>>s;
     ^~~~~~
     struct
foo.cc:7:14: error: 'cin' was not declared in this scope
     string s;cin>>s;
              ^~~
foo.cc:7:19: error: 's' was not declared in this scope
     string s;cin>>s;
                   ^
foo.cc:12:25: error: 'm' was not declared in this scope
     if(h>=0 && h<=23 && m>=0 && m<=59) 
                         ^
foo.cc:13:9: error: 'printf' was not declared in this scope
         printf("%02d:%02d\n", h, m);
         ^~~~~~
foo.cc:13:9: note: suggested alternative: 'int'
         printf("%02d:%02d\n", h, m);
         ^~~~~~
         int
foo.cc:15:9: error: 'printf' was not declared in this scope
         printf("it's not a valid time\n");  
         ^~~~~~
foo.cc:15:9: note: suggested alternative: 'int'
         printf("it's not a valid time\n");  
         ^~~~~~
         int
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1280 时间翻转
语言
C++
递交时间
2021-08-17 14:23:41
评测时间
2021-08-17 14:23:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes