Submission #2236212


Source Code Expand

#include<iostream>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int h=n/3600;
    n%=3600;
    int m=n/60;
    n%=60;
    int s=n;
    if(shi<10)
    {
            cout<<"0"<<h<<":";
    }
    else
    {
        cout<<h<<":";
    }
    if(fen<10)
    {
        cout<<"0"<<m<<":";
    }
    else
    {
        cout<<m<<":";
    }
    if(miao<10)
    {
        cout<<"0"<<s<<endl;
    }
    else
    {
        cout<<s<<endl;
    }
    return 0;
    
}

Submission Info

Submission Time
Task B - 入浴時間
User luogu_bot4
Language C++ (GCC 5.4.1)
Score 0
Code Size 465 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:12:8: error: ‘shi’ was not declared in this scope
     if(shi<10)
        ^
./Main.cpp:20:8: error: ‘fen’ was not declared in this scope
     if(fen<10)
        ^
./Main.cpp:28:8: error: ‘miao’ was not declared in this scope
     if(miao<10)
        ^