AtCoder Beginner Contest 001

Submission #121640

Source codeソースコード

#include <cstdio>
using namespace std;

int main(void){
	float m=0 ,VV=0;
	cin >> m;
	if(m < 100){
		printf("0");
	}else if(100 <= m && m<= 5000 ){
		if(100 <= m && m <= 900){
			printf("0");
		}
		VV = m/1000*10;
	}else if(6000 <= m && m<= 30000){
		VV = m/1000 + 50;
	}else if(35000 <= m && m<= 70000){
		VV = (m/1000 -30)/5+80;
	}else if(70000 < m){
		VV =89;
	}


	cout << VV << endl;
	return 0;

}

Submission

Task問題 B - 視程の通報
User nameユーザ名 batsu0227
Created time投稿日時
Language言語 C++ (G++ 4.6.4)
Status状態 CE
Score得点 -
Source lengthソースコード長 429 Byte
File nameファイル名
Exec time実行時間 -
Memory usageメモリ使用量 -

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

./Main.cpp: In function ‘int main()’:
./Main.cpp:6:2: error: ‘cin’ was not declared in this scope
./Main.cpp:23:2: error: ‘cout’ was not declared in this scope
./Main.cpp:23:16: error: ‘endl’ was not declared in this scope

Test case