为什么编译失败啊??
查看原帖
为什么编译失败啊??
1266130
zsx_herobrine楼主2024/4/6 14:23

请帮忙看看哪有问题

C++上能运行,但提交说编译失败

#include<bits/stdc++.h>
using namespace std;

int main()
{

 	ios::sync_with_stdio(0);
 	cin.tie(0);cout.tie(0);
	int h,m;cin>>h>>m;
 	if(m>44)cout<<cout<<h<<" "<<m-45;
 	else
 	{
 		if(h==0)cout<<23<<" "<<60-45+m;
 		else cout<<h-1<<" "<<60-45+m;
	}
    return 0;
}
2024/4/6 14:23
加载中...