记录详情

Compile Error

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)提供评测服务

信息

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