AtCoder Beginner Contest 012

Submission #1676215

Source codeソースコード

#include <iostream>
#include <string>
using namespace std;

int main()
{
int N;
int byou;
int hunn;
int karihunn;
int jikann;
cin >> N;
karihunn = N / 60;
jikann = karihunn / 60;
hunn = karihunn - jikan * 60;
byou = N - jikann * 3600 - hunn * 60;
cout << jikann + ":" + hunn + ":" + byou << endl;
}

Submission

Task問題 B - 入浴時間
User nameユーザ名 supadennjarasu
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 CE
Score得点 -
Source lengthソースコード長 315 Byte
File nameファイル名
Exec time実行時間 -
Memory usageメモリ使用量 -

Compiler messageコンパイルメッセージ

./Main.cpp: In function ‘int main()’:
./Main.cpp:15:19: error: ‘jikan’ was not declared in this scope
hunn = karihunn - jikan * 60;
^
./Main.cpp:17:31: error: invalid operands of types ‘const char*’ and ‘const char [2]’ to binary ‘operator+’
cout << jikann + ":" + hunn + ":" + byou << endl;
^

Test case