View Code of Problem 87

#include<stdio.h>
#include<string.h>
#include<math.h>

int main(){

	int t;
	scanf("%d",&t);
	if(t>32768||t%2!=0||t<0)printf("0 0")
	int a=t;
	if(a%4==0){t=t/4;}
	else  t=t/4+1;
		
	
	printf("%d ",t);
	printf("%d",a/2);


}

/*
Main.c: In function 'main':
Main.c:10:2: error: expected ';' before 'int'
  int a=t;
  ^
Main.c:11:5: error: 'a' undeclared (first use in this function)
  if(a%4==0){t=t/4;}
     ^
Main.c:11:5: note: each undeclared identifier is reported only once for each function it appears in
*/

Double click to view unformatted code.


Back to problem 87