foo.cc: In function 'void solve()':
foo.cc:7:5: error: 'string' was not declared in this scope
7 | string s;cin>>s;
| ^~~~~~
foo.cc:7:14: error: 'cin' was not declared in this scope
7 | string s;cin>>s;
| ^~~
foo.cc:7:19: error: 's' was not declared in this scope
7 | string s;cin>>s;
| ^
foo.cc:12:25: error: 'm' was not declared in this scope
12 | if(h>=0 && h<=23 && m>=0 && m<=59)
| ^
foo.cc:13:9: error: 'printf' was not declared in this scope
13 | printf("%02d:%02d\n", h, m);
| ^~~~~~
foo.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | void solve()
foo.cc:15:9: error: 'printf' was not declared in this scope
15 | printf("it's not a valid time\n");
| ^~~~~~
foo.cc:15:9: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务