Submission #840660


Source Code Expand

#include<stdio.h>
#include<string.h>
#include<math.h>
#include<string.h>
int main(void)
{
	int a;
	scanf("%d",&a);
	if (a < 100)
	{
		printf("00");
	}
	else if (a >= 100 && a <= 5000)
	{
		if (a < 1000){
			printf("0");
			printf("%d", a / 100);
		}
		else{
			printf("%d",a/100);
		}
	}
	else if (a >= 6000 && a <= 30000)
	{
		printf("%d", (a / 1000) + 50);
	}
	else if (a >= 35000 && a <= 70000)
	{
		printf("%d", ((a / 1000)-30)/5+80);
	}
	else
	{
		printf("89");
	}

Submission Info

Submission Time
Task B - 視程の通報
User ayatakamaru
Language C (GCC 4.6.4)
Score 0
Code Size 502 Byte
Status CE

Compile Error

./Main.c: In function ‘main’:
./Main.c:34:2: error: expected declaration or statement at end of input
./Main.c:8:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]