criyle/codenet-compile-errors huggingface dataset:
Language: C

#include <stdio.h>
int main(void){

    int W,H,x,y,r;
    scanf("%d %d %d %d %d", &W,&H,&x,&y,&r);
    
    if(0 <= x+r&&x+r <= W&&0 <= y+r&& <= H)
        printf("Yes\n");
    else
        printf("No\n");
    
    return 0;
    
}



Compiler output:
main.c: In function 'main':
main.c:7:39: error: expected expression before '<=' token
    7 |     if(0 <= x+r&&x+r <= W&&0 <= y+r&& <= H)
      |                                       ^~
Language: C

#include<stdio.h>

int main(void)
{

	int W,H,x,y,r;
	scanf( "%d %d %d %d %d", &W, &H, &x, &y, &r);
	
	if( W>=x+r && H=>y+r && x>=0 && y>=0 )
	{
		printf( "Yes\n" );
	}
	else
	{
		printf( " No\n" );
	}
	
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:9:25: error: expected expression before '>' token
    9 |         if( W>=x+r && H=>y+r && x>=0 && y>=0 )
      |                         ^
Language: C

//
//  main.c
//  ITP1_2_D
//
//  Created by k16031kk on 2018/05/17.
//  Copyright © 2018年 AIT. All rights reserved.
//

#include <stdio.h>

int main(int argc, const char * argv[]) {
    // insert code here...
    int W,H,x,y,r;
    scanf("%d %d %d %d %d",&W, &H, &x, &y, &r);
    W/x
    //BAD
    if(x<W && y<H) {
        printf("No\n");
    }
    //OK
    /*if(x>r && y>r) {//x,yはrよりも大きい
        printf("Yes\n");
    }*/
    if(W/x>2 && H/y>2) {//左下
        if(x>r && y>r) {//x,yはrよりも大きい
            printf("Yes\n");
        } else {
            printf("No\n");
        }
    }
    else if(W/x>2 && H/y<2) {//左上
        if(x>r && H-y>r) {
            printf("Yes\n");
        } else {
            printf("No\n");
        }
    }
    else if(W/x<2 && H/y>2) {//右下
        if(W-x>r && y>r) {
            printf("Yes\n");
        }else {
            printf("No\n");
        }
    }
    else if(W/x<2 && H/y<2) {//右上
        if(W-x>r && H-y>r) {
            printf("Yes\n");
        }else {
            printf("No\n");
        }
    }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:15:8: error: expected ';' before 'if'
   15 |     W/x
      |        ^
      |        ;
   16 |     //BAD
   17 |     if(x<W && y<H) {
      |     ~~
Language: C

#include<stdio.h>

int main(void){
    int w,h,x,y,r;
    scanf("%d%d%d%d%d",&w,&h,&x,&y,&r);
    if(x>=r&&y>=r&&x<=w-r&&y<=h-r) printf("Yes\n")
    else printf("No\n")
    reutrn 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:51: error: expected ';' before 'else'
    6 |     if(x>=r&&y>=r&&x<=w-r&&y<=h-r) printf("Yes\n")
      |                                                   ^
      |                                                   ;
    7 |     else printf("No\n")
      |     ~~~~
Language: C

#include<stdio.h>

int main(void){
    int w,h,x,y,r;
    scanf("%d%d%d%d%d",&w,&h,&x,&y,&r);
    if(x>=r&&y>=r&&x<=w-r&&y<=h-r) printf("Yes\n");
    else printf("No\n");
    reutrn 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'reutrn' undeclared (first use in this function)
    8 |     reutrn 0;
      |     ^~~~~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:11: error: expected ';' before numeric constant
    8 |     reutrn 0;
      |           ^~
      |           ;
Language: C

#include <stdio.h>
int main(void){
    
    int W,H,x,y,r;
    scanf("%d %d %d %d %d", &W,&H,&x,&y,&r);
    
    if(0 <= x+r&&x+r <= W&&0 <= y+r&& <= H)
        printf("Yes\n");
    else
        printf("No\n");
    
    return 0;
    
}



Compiler output:
main.c: In function 'main':
main.c:7:39: error: expected expression before '<=' token
    7 |     if(0 <= x+r&&x+r <= W&&0 <= y+r&& <= H)
      |                                       ^~
Language: C

include <stdio.h>
int main(void){
    int W,H,x,y,r,n;
    scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
        
    n=0;
    if (x+r>W)n=1 | (x-r<0);
    
    
    if(n == 0)
    printf("Yes\n");
    else 
    printf("No\n");
    
    return 0;
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include <stdio.h>
int main(void){
    int W,H,x,y,r,n;
    scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
        
    n=0;
    if (x+r>W)n=1 | x-r<0;
    
    
    if(n == 0)
    printf("Yes\n");
    else 
    printf("No\n");
    
    return 0;
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

include<stdio.h>
 
int main()
{
    int W,H,x,y,r;
    scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
    if (W>=x+r && H>=y+r && r<=x && r<=y && x>=0 && y>=0){
        printf("Yes\n");}
        else {
            printf("No\n");}
             
    return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>
int main()
{
 int x,y,r,W,H;
 scanf("%d,%d,%d,%d,%d",&x,&y,&r,&W,&H);
 if(x<0 || y<0)
  print("No");
 else if(x+r>W || y+r>H)
  print("No");
 else
  print("Yes");
 return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |   print("No");
      |   ^~~~~
      |   printf
Language: C

#include <stdio.h>
int main()
{
 int x,y,r,W,H;
 scanf("%d,%d,%d,%d,%d",&x,&y,&r,&W,&H);
 W-=r;H-=r
 if(r<=x && r<=y && x<=W && y<=H)
  printf("Yes\n");
 else
  printf("No\n");
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected ';' before 'if'
    6 |  W-=r;H-=r
      |           ^
      |           ;
    7 |  if(r<=x && r<=y && x<=W && y<=H)
      |  ~~        
main.c:9:2: error: 'else' without a previous 'if'
    9 |  else
      |  ^~~~
Language: C

#include<stdio.h>

 int main(){
  int W,H,x,y,r;

 scanf("%d %d %d %d %d", &W,&H,&x,&y,&r);
 if(x-r < 0 || x+r > W){
 printf("No\n");
 }
 else{
 printf("Yes\n");
 }
 if(y-r < 0 || y+r > H){
 printf("No\n");
 }
 else{
 printf("Yes\n");
 return 0;
}
 


Compiler output:
main.c: In function 'main':
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>

 int main(){
  int W, H, x, y, r;

 scanf("%d %d %d %d %d", &W,&H,&x,&y,&r);
 if(x-r < 0 || x+r > W){
 printf("No\n");
 }
 else{
 printf("Yes\n");
 }
 if(y-r < 0 || y+r > H){
 printf("No\n");
 }
 else{
 printf("Yes\n");
 return 0;
}
 


Compiler output:
main.c: In function 'main':
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include<stdio.h>

 int main(){
  int W, H, x, y, r;

 scanf("%d %d %d %d %d", &W,&H,&x,&y,&r);
 if((x-r < 0 || x+r > W) ||CA (y-r < 0 || y+r > H)){
 printf("No\n");
 }
 else{
 printf("Yes\n");
 }
 return 0;
}
 


Compiler output:
main.c: In function 'main':
main.c:7:28: error: implicit declaration of function 'CA' [-Wimplicit-function-declaration]
    7 |  if((x-r < 0 || x+r > W) ||CA (y-r < 0 || y+r > H)){
      |                            ^~
Language: C

#include <stdio.h>
int main(void){


    int a,i,b,count=0,max=0,min=10000;
    scanf("%d",&a);
    for(i=1;i<=a;i++){
        scanf("%d",&b);
        
        if(b>max){
            max=b;
        }
        else if(b<min){
            min=b;
        }
        else{
        }
        count++;
        
    }        
    
    printf("%d %d %d",min,max,count);
    
                
    return 0;


Compiler output:
main.c: In function 'main':
main.c:25:5: error: expected declaration or statement at end of input
   25 |     return 0;
      |     ^~~~~~
Language: C

#include <stdio.h>
int main(void){
  int x,y,r,W,H;
  scanf("%d,%d,%d,%d,%d\n",&W,&H,&x,&y,&r;
  if(x-r < 0 || y-r<0 || x+r > W || y+r > H){
    printf("No\n");
  }else if(x-r >= 0 && y-r >=0 && x+r<=W && y+r<=H ){
    printf("Yes\n");
  }
}


Compiler output:
main.c: In function 'main':
main.c:4:42: error: expected ')' before ';' token
    4 |   scanf("%d,%d,%d,%d,%d\n",&W,&H,&x,&y,&r;
      |        ~                                 ^
      |                                          )
main.c:9:4: error: expected ';' before '}' token
    9 |   }
      |    ^
      |    ;
   10 | }
      | ~
Language: C

#include <stdio.h>
int main(void){
  int x,y,r,W,H;
  scanf("%d,%d,%d,%d,%d\n",&W,&H,&x,&y,&r;
  if(x-r < 0 || y-r<0 || x+r > W || y+r > H){
    printf("No\n");
  }else if(x-r >= 0 && y-r >=0 && x+r<=W && y+r<=H ){
    printf("Yes\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:42: error: expected ')' before ';' token
    4 |   scanf("%d,%d,%d,%d,%d\n",&W,&H,&x,&y,&r;
      |        ~                                 ^
      |                                          )
main.c:10:12: error: expected ';' before '}' token
   10 |   return 0;
      |            ^
      |            ;
   11 | }
      | ~
Language: C

#include <stdio.h>
int main(void){
  int x,y,r,W,H;
  scanf("%d,%d,%d,%d,%d\n",&W,&H,&x,&y,&r;
  if(x-r < 0 || y-r<0 || x+r > W || y+r > H){
    printf("No\n");
  }else if(x-r >= 0 && y-r >= 0 && x+r <= W && y+r <= H ){
    printf("Yes\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:42: error: expected ')' before ';' token
    4 |   scanf("%d,%d,%d,%d,%d\n",&W,&H,&x,&y,&r;
      |        ~                                 ^
      |                                          )
main.c:10:12: error: expected ';' before '}' token
   10 |   return 0;
      |            ^
      |            ;
   11 | }
      | ~
Language: C

#include <stdio.h>
int main(void){
  int x,y,r,W,H;
  scanf("%d, %d, %d, %d, %d\n",&W,&H,&x,&y,&r;
  if(x-r < 0 || y-r<0 || x+r > W || y+r > H){
    printf("No\n");
  }else if(x-r >= 0 && y-r >= 0 && x+r <= W && y+r <= H ){
    printf("Yes\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:46: error: expected ')' before ';' token
    4 |   scanf("%d, %d, %d, %d, %d\n",&W,&H,&x,&y,&r;
      |        ~                                     ^
      |                                              )
main.c:10:12: error: expected ';' before '}' token
   10 |   return 0;
      |            ^
      |            ;
   11 | }
      | ~
Language: C

#include <stdio.h>
int main(void){
  int x,y,r,W,H;
  scanf("%d, %d, %d, %d, %d\n",&W,&H,&x,&y,&r);
  if(x-r < 0 || y-r<0 || x+r > W || y+r > H){
    printf("No\n");
  }else{
    printf("Yes\n");
  }
  return 0;



Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected declaration or statement at end of input
   10 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>

int main(){
    int W ,H ,x ,y ,r;
    scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
    
    if(x+r >= W&&x-r <= 0&&y+r >= H&&y-r <=0 ){
        printf("Yes\n");
    }else{
        printf("No\");
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:16: warning: missing terminating " character
   10 |         printf("No\");
      |                ^
main.c:10:16: error: missing terminating " character
   10 |         printf("No\");
      |                ^~~~~~~
main.c:11:5: error: expected expression before '}' token
   11 |     }
      |     ^
main.c:10:16: error: expected ';' before '}' token
   10 |         printf("No\");
      |                ^
      |                ;
   11 |     }
      |     ~
Language: C

#include<stdio.h>
int main(void)
{
	int W,H,x,y,r;

	scanf("%d %d %d %d %d",W,H,x,y,r);

	W-=r,H-=r;

	if(r<=x && x<=W && r<=y && y<=H)printf("Yes\n");
	else print("No\n");

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:14: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |         else print("No\n");
      |              ^~~~~
      |              printf
Language: C

#include<stdio.h>
#include<stdlib.h>
int main(void)
{
	int W,H,x,y,r;

	scanf("%d %d %d %d %d",W,H,x,y,r);

	W-=r,H-=r;

	if(r<=x && x<=W && r<=y && y<=H)printf("Yes\n");
	else print("No\n");

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:14: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |         else print("No\n");
      |              ^~~~~
      |              printf
Language: C

nclude<stdio.h>

int main(void)
{
int w,h,x,y,r;

printf("W H x y r=");
scanf("%d %d %d %d %d",&w,&h,&x,&y,&r);

f=0;
if(x+r>w)f=1;
if(y+r>h)f=1;
if(r>x)f=1;
if(r>y)f=1;

if(f==0)printf("Yes\n");
else printf("No\n");

return 0;
}




Compiler output:
main.c:1:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | nclude<stdio.h>
      |       ^
Language: C

#include <stdio.h>
int main()
{
  int W, H, x, y, r;
  scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
  x = x + r;
  y = y + r
  if( x < 0 || x > W || y < 0 || y > H )
  {
    printf("NO\n");
  }
  else
  {
    printf("YES\n");
  }
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected ';' before 'if'
    7 |   y = y + r
      |            ^
      |            ;
    8 |   if( x < 0 || x > W || y < 0 || y > H )
      |   ~~
Language: C

#include <stdio.h>
int main(void){
  

 int W, H, x, y, r;
 cin >> W >> H >> x >> y >> r;
 if(r <= x && r <= y && x + r <= W && y + r <= H) puts("Yes"); 
 else puts("No"); 
    
return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:2: error: 'cin' undeclared (first use in this function)
    6 |  cin >> W >> H >> x >> y >> r;
      |  ^~~
main.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
  int W, H, x, y, r;

  scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
  if (x-r => 0 && x+r =< W && y-r => 0 && y+r =< H){
    printf("Yes\n");
  }else{
    printf("No\n");
  }
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:7:12: error: expected expression before '>' token
    7 |   if (x-r => 0 && x+r =< W && y-r => 0 && y+r =< H){
      |            ^
Language: C

#include <stdio.h>
int main()
{
    int W, H, x, y, r;
    scanf("%d, %d, %d, %d,%d", &W, &H, &x, &y, &r);
    if ( ( W >= x + r | | x - r > 0 ) && ( H >= y +r | | y -r >= 0 ) )
         printf("Yes\n");
    else
         printf("No\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected expression before '|' token
    6 |     if ( ( W >= x + r | | x - r > 0 ) && ( H >= y +r | | y -r >= 0 ) )
      |                         ^
main.c:6:56: error: expected expression before '|' token
    6 |     if ( ( W >= x + r | | x - r > 0 ) && ( H >= y +r | | y -r >= 0 ) )
      |                                                        ^
Language: C

#include <stdio.h>
int main()
{
    int W, H, x, y, r;
    scanf("%d, %d, %d, %d,%d", &W, &H, &x, &y, &r);
    if ( ( W >= x + r | | x - r >= 0 ) && ( H >= y +r | | y -r >= 0 ) )
         printf("Yes\n");
    else
         printf("No\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected expression before '|' token
    6 |     if ( ( W >= x + r | | x - r >= 0 ) && ( H >= y +r | | y -r >= 0 ) )
      |                         ^
main.c:6:57: error: expected expression before '|' token
    6 |     if ( ( W >= x + r | | x - r >= 0 ) && ( H >= y +r | | y -r >= 0 ) )
      |                                                         ^
Language: C

#include <stdio.h>
using namespace std;
int main(){ int W,H,x,y,r; 
 
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
 
if((x >= r && x <= W-r) && (y >= r && y <= H-r)) printf("Yes\n");
 
else{ printf("No\n"); 
     
}
} 


Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
Language: C

#include <stdio.h>
int main(){
    int W;
    int H;
    int r;
    int x;
    int y;
    char *check;
    
    scanf("%d %d %d %d %d",&,W&H,&x,&y,&r);
    
    if(x - r< 0 || x + r > W) check = "No";
    else check = "Yes";
    
    if(y + r > H || y - r < 0) check = "No";
    else check = "Yes";
    
    printf("%c\n",check);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected expression before ',' token
   10 |     scanf("%d %d %d %d %d",&,W&H,&x,&y,&r);
      |                             ^
Language: C

#include <stdio.h>
int main(){
    int W;
    int H;
    int r;
    int x;
    int y;
    char *check;
    
    scanf("%d %d %d %d %d",&,W&H,&x,&y,&r);
    
    if(x - r< 0 || x + r > W) check = "No";
    else check = "Yes";
    
    if(y + r > H || y - r < 0) check = "No";
    else check = "Yes";
    
    printf("%s\n",check);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected expression before ',' token
   10 |     scanf("%d %d %d %d %d",&,W&H,&x,&y,&r);
      |                             ^
Language: C

#include <stdio.h>
int main(){
    int W;
    int H;
    int r;
    int x;
    int y;
    char *check;
    
    scanf("%d %d %d %d %d",&,W,&H,&x,&y,&r);
    
    if(x - r< 0 || x + r > W) check = "No";
    else check = "Yes";
    
    if(y + r > H || y - r < 0) check = "No";
    else check = "Yes";
    
    printf("%s\n",check);
    return 0;
}



Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected expression before ',' token
   10 |     scanf("%d %d %d %d %d",&,W,&H,&x,&y,&r);
      |                             ^
Language: C

include<stdio.h>

int main(void)
{
	int W, H, x, y, r;

	scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);

	if((x-r < 0) || (x+r > W) || (y-r < 0) || (y+r > H))
	{
		printf("No\n");
	}
	if((x-r >= 0) && (x+r <= W) && (y-r >= 0) && (y+r <= H))
	{
		printf("Yes\n");
	}
	
	return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include <stdio.h>
int main(void)
{
	int W, H, x, y, r;
	scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);
	if  ((x - r >= 0) && (x + r <= W)) && ((y - r >= 0) && (y + r <= H))
	{
		printf("Yes\n");
	}
	else
	{
		printf("No\n");
	}
}


Compiler output:
main.c: In function 'main':
main.c:6:47: error: expected identifier before '(' token
    6 |         if  ((x - r >= 0) && (x + r <= W)) && ((y - r >= 0) && (y + r <= H))
      |                                               ^
Language: C

#include<stdio.h>

int main(){
  int W, H, x, y, r;
  scanf("%d %d %d %d %d", &W, &H, &x, &y, &r);

  if(x - r >= 0 && x + r <= W && y - r >= 0 && y + r <= H){
    printf("Yes\n");
  }
  else{
    printf("No\n");
  }
  
  return 0;
}

    © 2018 GitHub, Inc.
    Terms
    Privacy
    Security
    Status
    Help




Compiler output:
main.c:17:5: error: stray '\302' in program
   17 |     <U+00A9> 2018 GitHub, Inc.
      |     ^~~~~~~~
main.c:17:7: error: expected identifier or '(' before numeric constant
   17 |     © 2018 GitHub, Inc.
      |       ^~~~
Language: C

#include <stdio.h>

int main(void){
int W;
int H;
int x;
int y;
int r;
int f=0;
scanf("%d%d%d%d%d",&W,&H,&x,&y,&r);
if(x<r){
f=1;}
if(y<r){
f=1;}
if(x>W-r){
f=1;}
if(y>H-r){
f=1;}
if(f == 1){
printf("No");}
if(f =/ 1){
printf("Yes");}}


Compiler output:
main.c: In function 'main':
main.c:21:7: error: expected expression before '/' token
   21 | if(f =/ 1){
      |       ^
Language: C

#include <stdio.h>

int main(){
    int W, H, x, y, r;
    
    scanf("%d %d %d %d %d",&W,%H,%x,%y,%r);
    
    if((x-r)>0&&(x+r)<W&&(y-r)>0&&(y+r)<H){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:31: error: expected expression before '%' token
    6 |     scanf("%d %d %d %d %d",&W,%H,%x,%y,%r);
      |                               ^
Language: C

#include <stdio.h>

int main(){
    int W, H, x, y, r;
    
    scanf("%d %d %d %d %d",&W,%H,%x,%y,%r);
    
    if((x-r)>0&&(x+r)<H&&(y-r)>0&&(y+r)<W){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:31: error: expected expression before '%' token
    6 |     scanf("%d %d %d %d %d",&W,%H,%x,%y,%r);
      |                               ^
Language: C

#include <stdio.h>

int main(){
    int W, H, x, y, r;
    
    scanf("%d %d %d %d %d",&W,%H,%x,%y,%r);
    
    if((x-r)>=0&&(x+r)<=W&&(y-r)>=0&&(y+r)<=H){
        printf("Yes\n");
    }else{
        printf("No\n");
    }
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:31: error: expected expression before '%' token
    6 |     scanf("%d %d %d %d %d",&W,%H,%x,%y,%r);
      |                               ^
Language: C

w,h,x,y,r = gets.split.map(&:to_i)
xmax = w - r
ymax = h - r
puts r<=x&&x<=xmax&&r<=y&&y<=ymax ? :Yes : :No



Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | w,h,x,y,r = gets.split.map(&:to_i)
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'w' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'h' [-Wimplicit-int]
    1 | w,h,x,y,r = gets.split.map(&:to_i)
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    1 | w,h,x,y,r = gets.split.map(&:to_i)
      |     ^
main.c:1:7: error: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
    1 | w,h,x,y,r = gets.split.map(&:to_i)
      |       ^
main.c:1:9: error: type defaults to 'int' in declaration of 'r' [-Wimplicit-int]
    1 | w,h,x,y,r = gets.split.map(&:to_i)
      |         ^
main.c:1:13: error: 'gets' undeclared here (not in a function)
    1 | w,h,x,y,r = gets.split.map(&:to_i)
      |             ^~~~
main.c:1:29: error: expected expression before ':' token
    1 | w,h,x,y,r = gets.split.map(&:to_i)
      |                             ^
main.c:2:1: error: expected ',' or ';' before 'xmax'
    2 | xmax = w - r
      | ^~~~
Language: C

#include <stdio.h>
int main(void)
{
w,h,x,y,r = gets.split.map(&:to_i)
xmax = w - r
ymax = h - r
puts r<=x&&x<=xmax&&r<=y&&y<=ymax ? :Yes : :No
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:1: error: 'w' undeclared (first use in this function)
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      | ^
main.c:4:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:3: error: 'h' undeclared (first use in this function)
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |   ^
main.c:4:5: error: 'x' undeclared (first use in this function)
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |     ^
main.c:4:7: error: 'y' undeclared (first use in this function)
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |       ^
main.c:4:9: error: 'r' undeclared (first use in this function)
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |         ^
main.c:4:13: error: 'gets' undeclared (first use in this function); did you mean 'fgets'?
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |             ^~~~
      |             fgets
main.c:4:29: error: expected expression before ':' token
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |                             ^
main.c:4:35: error: expected ';' before 'xmax'
    4 | w,h,x,y,r = gets.split.map(&:to_i)
      |                                   ^
      |                                   ;
    5 | xmax = w - r
      | ~~~~
Language: C


#include <stdio.h>


int main()
{
	int W, H;
	int x, y, r;

	scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
	W -= r, H -= r;
	if (r <= x && x <= W && r <= y && y <= H) printf("Yes\n");
	else printf("No\n");
	return 0;
}



Compile Error Logs: 

 

ステータス 
Judge: 25/25 C CPU: 00:00 sec Memory: 584 KB Length: 233 B 2017-07-27 12:35 
テストケースの判定結果 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 580 10 4 00_sample_00.in 
Case #2 : Accepted 00:00 580 10 3 00_sample_01.in 
Case #3  



Compiler output:
main.c:19:1: error: unknown type name 'Compile'
   19 | Compile Error Logs:
      | ^~~~~~~
main.c:19:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   19 | Compile Error Logs:
      |               ^~~~
main.c:26:6: error: stray '#' in program
   26 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:28:6: error: stray '#' in program
   28 | Case #1 : Accepted 00:00 580 10 4 00_sample_00.in
      |      ^
main.c:28:35: error: invalid suffix "_sample_00.in" on integer constant
   28 | Case #1 : Accepted 00:00 580 10 4 00_sample_00.in
      |                                   ^~~~~~~~~~~~~~~
main.c:29:6: error: stray '#' in program
   29 | Case #2 : Accepted 00:00 580 10 3 00_sample_01.in
      |      ^
main.c:29:35: error: invalid suffix "_sample_01.in" on integer constant
   29 | Case #2 : Accepted 00:00 580 10 3 00_sample_01.in
      |                                   ^~~~~~~~~~~~~~~
main.c:30:6: error: stray '#' in program
   30 | Case #3
      |      ^
Language: C



#include <stdio.h>
#include <stdlib.h>

int main()
{
	int W, H;
	int x, y, r;

	scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
	W -= r, H -= r;
	if (r <= x && x <= W && r <= y && y <= H) printf("Yes\n");
	else printf("No\n");
	return 0;
}



Compile Error Logs: 

 

ステータス 
Judge: 25/25 C CPU: 00:00 sec Memory: 584 KB Length: 233 B 2017-07-27 12:35 
テストケースの判定結果 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 580 10 4 00_sample_00.in 
Case #2 : Accepted 00:00 580 10 3 00_sample_01.in 
Case #3  



Compiler output:
main.c:20:1: error: unknown type name 'Compile'
   20 | Compile Error Logs:
      | ^~~~~~~
main.c:20:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   20 | Compile Error Logs:
      |               ^~~~
main.c:27:6: error: stray '#' in program
   27 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:29:6: error: stray '#' in program
   29 | Case #1 : Accepted 00:00 580 10 4 00_sample_00.in
      |      ^
main.c:29:35: error: invalid suffix "_sample_00.in" on integer constant
   29 | Case #1 : Accepted 00:00 580 10 4 00_sample_00.in
      |                                   ^~~~~~~~~~~~~~~
main.c:30:6: error: stray '#' in program
   30 | Case #2 : Accepted 00:00 580 10 3 00_sample_01.in
      |      ^
main.c:30:35: error: invalid suffix "_sample_01.in" on integer constant
   30 | Case #2 : Accepted 00:00 580 10 3 00_sample_01.in
      |                                   ^~~~~~~~~~~~~~~
main.c:31:6: error: stray '#' in program
   31 | Case #3
      |      ^
Language: C


#include <stdio.h>
#include <stdlib.h>

int main()
{
	int W, H;
	int x, y, r;

	scanf("%d%d%d%d%d", &W, &H, &x, &y, &r);
	W -= r, H -= r;
	if (r <= x && x <= W && r <= y && y <= H) printf("Yes\n");
	else printf("No\n");
	return 0;
}



Compile Error Logs: 

 

ステータス 
Judge: 25/25 C CPU: 00:00 sec Memory: 584 KB Length: 233 B 2017-07-27 12:35 
テストケースの判定結果 
Case # Verdict CPU Time Memory In Out Case Name 

Case #1 : Accepted 00:00 580 10 4 00_sample_00.in 
Case #2 : Accepted 00:00 580 10 3 00_sample_01.in 
Case #3  



Compiler output:
main.c:19:1: error: unknown type name 'Compile'
   19 | Compile Error Logs:
      | ^~~~~~~
main.c:19:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Logs'
   19 | Compile Error Logs:
      |               ^~~~
main.c:26:6: error: stray '#' in program
   26 | Case # Verdict CPU Time Memory In Out Case Name
      |      ^
main.c:28:6: error: stray '#' in program
   28 | Case #1 : Accepted 00:00 580 10 4 00_sample_00.in
      |      ^
main.c:28:35: error: invalid suffix "_sample_00.in" on integer constant
   28 | Case #1 : Accepted 00:00 580 10 4 00_sample_00.in
      |                                   ^~~~~~~~~~~~~~~
main.c:29:6: error: stray '#' in program
   29 | Case #2 : Accepted 00:00 580 10 3 00_sample_01.in
      |      ^
main.c:29:35: error: invalid suffix "_sample_01.in" on integer constant
   29 | Case #2 : Accepted 00:00 580 10 3 00_sample_01.in
      |                                   ^~~~~~~~~~~~~~~
main.c:30:6: error: stray '#' in program
   30 | Case #3
      |      ^
Language: C

#include<stdio.h>

int main(){
 int W,H,x,y,r;
 scanf("%d%d%d%d%d",&W,&H,&x,&y,&r);

 if(x-r<0){
 printf("No\n");
}else if(y-r<0){
 printf("No\n");
 else if(y+r>W){
 printf("No\n");
 else if(x+r>H){
 printf("No\n");
 else{
 printf("Yes\n");
}
return 0;}




Compiler output:
main.c: In function 'main':
main.c:11:2: error: expected '}' before 'else'
   11 |  else if(y+r>W){
      |  ^~~~
main.c:13:2: error: expected '}' before 'else'
   13 |  else if(x+r>H){
      |  ^~~~
main.c:15:2: error: expected '}' before 'else'
   15 |  else{
      |  ^~~~
Language: C

#include <stdio.h>
main(){
  int W,H,x,y,r;
  scanf("%d %d %d %d %d",&W,&Y,&x,&y,&r);
  if(x+r>=0 && y+r>=0 && x+r<=W && y+r<=Y){
    printf("Yes\n");
  }
  else{
    printf("No\n");
  }
  return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:30: error: 'Y' undeclared (first use in this function)
    4 |   scanf("%d %d %d %d %d",&W,&Y,&x,&y,&r);
      |                              ^
main.c:4:30: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#Include<iostream>
using namespace std;

int main(){
int W,H,x,y,r;

cin >> W >> H >> x >> y >> r;

if(x+r =< W && x-r >= 0){
  if(y+r =< H && y-r >= 0){
  cout << "Yes" << endl;
  return 0;
  }
}

cout << "No" <<endl;
return 0;

}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<iostream>
      |  ^~~~~~~
      |  include
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:7:1: error: 'cin' undeclared (first use in this function)
    7 | cin >> W >> H >> x >> y >> r;
      | ^~~
main.c:7:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:9: error: expected expression before '<' token
    9 | if(x+r =< W && x-r >= 0){
      |         ^
main.c:10:11: error: expected expression before '<' token
   10 |   if(y+r =< H && y-r >= 0){
      |           ^
main.c:11:3: error: 'cout' undeclared (first use in this function)
   11 |   cout << "Yes" << endl;
      |   ^~~~
main.c:11:20: error: 'endl' undeclared (first use in this function)
   11 |   cout << "Yes" << endl;
      |                    ^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int W, H, x, y, r;
	cin >> W >> H >> x >> y >> r;
	if (((x+r)<=W)&&((y+r)<=H)) {
		cout <<"Yes";
	} else 
	if (((x+r)>W)&&((y+r)>H)) {
		cout <<"No";
	} 
	


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected '}' at end of input
   11 |         }
      |          ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

include <iostream>
using namespace std;

int main(){
	int w,h,x,y,r;
	cin >> w >> h >> x >>y >> r;
	if (r+x >= w) {
		cout << "No";
	} else if (r >= x) {
		cout << "No";
	} else if (r+y >= h) {
		cout << "No";
	} else if (r >= y) {
		cout << "No";
	} else {
		cout << "Yes";
	}
	return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> w >> h >> x >>y >> r;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << "No";
      |                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "No";
      |                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "No";
      |                 ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No";
      |                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "Yes";
      |                 ^~~~
Language: C++

iinclude <iostream>
using namespace std;

int main(){
	int w,h,x,y,r;
	cin >> w >> h >> x >>y >> r;
	if (r+x >= w) {
		cout << "No" << endl;
	} else if (r >= x) {
		cout << "No" << endl;
	} else if (r+y >= h) {
		cout << "No" << endl;
	} else if (r >= y) {
		cout << "No" << endl;
	} else {
		cout << "Yes" << endl;
	}
	return 0;
}


Compiler output:
a.cc:1:1: error: 'iinclude' does not name a type
    1 | iinclude <iostream>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> w >> h >> x >>y >> r;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:8:33: error: 'endl' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:10:33: error: 'endl' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:14:33: error: 'endl' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                                  ^~~~
Language: C++

include <iostream>
using namespace std;

int main () {
	int w,h,x,y,r;
	cin >> w >> h >> x >> y >> r;
	if (r+x >= w) {
		cout << "No" << endl;
	} else if (r >= x) {
		cout << "No" << endl;
	} else if (r+y >= h) {
		cout << "No" << endl;
	} else if (r >= y) {
		cout << "No" << endl;
	} else {
		cout << "Yes" << endl;
	}
	return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> w >> h >> x >> y >> r;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:8:33: error: 'endl' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:10:33: error: 'endl' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:14:33: error: 'endl' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                                  ^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int W, H, x, y, r;
	cin >> W >> H >> x >> y >> r;
	if (((x+r)<=W)&&((y+r)<=H)) {
		cout <<"Yes"<<endl;
	} else 
	if (((x+r)>W)((y+r)>H)) {
		cout <<"No"<<endl;
	} 
    return 0;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expression cannot be used as a function
    9 |         if (((x+r)>W)((y+r)>H)) {
      |             ~~~~~~~~~^~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int W, H, x, y, r;
	cin >> W >> H >> x >> y >> r;
	if ((W - x >= r ) && (H - y >= r) && (x - 0 >= r) && (y - 0 >= r) && (x > r) && (y > r) {
		cout << "Yes" << endl;
	} else cout << "NO" << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:96: error: expected ';' before '{' token
    6 |         if ((W - x >= r ) && (H - y >= r) && (x - 0 >= r) && (y - 0 >= r) && (x > r) && (y > r) {
      |                                                                                                ^~
      |                                                                                                ;
a.cc:8:11: error: expected primary-expression before 'else'
    8 |         } else cout << "NO" << endl;
      |           ^~~~
a.cc:8:10: error: expected ')' before 'else'
    8 |         } else cout << "NO" << endl;
      |          ^~~~~
      |          )
a.cc:6:12: note: to match this '('
    6 |         if ((W - x >= r ) && (H - y >= r) && (x - 0 >= r) && (y - 0 >= r) && (x > r) && (y > r) {
      |            ^
Language: C++

include <iostream>
using namespace std;

int main () {
	int w,h,x,y,r;
	cin >> w >> h >> x >> y >> r;
	if (r+x-1 >= w) {
		cout << "No" << endl;
	} else if (r-1 >= x) {
		cout << "No" << endl;
	} else if (r+y-1 >= h) {
		cout << "No" << endl;
	} else if (r-1 >= y) {
		cout << "No" << endl;
	} else {
		cout << "Yes" << endl;
	}
	return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> w >> h >> x >> y >> r;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:8:33: error: 'endl' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:10:33: error: 'endl' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:14:33: error: 'endl' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                                  ^~~~
Language: C++

include <iostream>
using namespace std;

int main () {
	int w,h,x,y,r;
	cin >> w >> h >> x >> y >> r;
	if (r + x > w) {
		cout << "No" << endl;
	} else if (r > x) {
		cout << "No" << endl;
	} else if (r + y > h) {
		cout << "No" << endl;
	} else if (r > y) {
		cout << "No" << endl;
	} else {
		cout << "Yes" << endl;
	}
	return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> w >> h >> x >> y >> r;
      |         ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:8:33: error: 'endl' was not declared in this scope
    8 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:10:33: error: 'endl' was not declared in this scope
   10 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:12:33: error: 'endl' was not declared in this scope
   12 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:14:33: error: 'endl' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "Yes" << endl;
      |                                  ^~~~
Language: C++

use std::io;
use std::str::FromStr;

fn main() {
   
    let stdin = io::stdin();
    let mut buf = String::new();
    stdin.read_line(&mut buf).unwrap();
    let mut it = buf.split_whitespace().map(|n| usize::from_str(n).unwrap());
    let W = it.next().unwrap();
    let H = it.next().unwrap();
    let x = it.next().unwrap();
    let y = it.next().unwrap();
    let r = it.next().unwrap();

    if x+r<H && x-r>0 && y+r<W && y-r>0 {
            println!("Yes");
    }else{
        println!("No");
    }

    
    

    
}


Compiler output:
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'fn' does not name a type
    4 | fn main() {
      | ^~
Language: C++

#include <iostream>
using namespace std;

#define for_(i,a,b) for(int i = (a);i < (b);i++)
#define rfor_(i,a,b) for(int i = (b)-1;i >= (a);i--)
#define rep(i,n) for_(i,0,(n))
#define rrep(i,n) rfor_(i,0,(n))

int W, H, x, y, r;

int main(){
	cin.tie(0);
	cin>>W>>H>>x>>y>>r;
	if(x<r || y<r)cout<<'No';
	else (W-r<x || H-r<y)cout<<'No';
	else cout<<'Yes';
	cout<<endl;
	return 0;
}



Compiler output:
a.cc:14:29: warning: multi-character character constant [-Wmultichar]
   14 |         if(x<r || y<r)cout<<'No';
      |                             ^~~~
a.cc:15:36: warning: multi-character character constant [-Wmultichar]
   15 |         else (W-r<x || H-r<y)cout<<'No';
      |                                    ^~~~
a.cc:16:20: warning: multi-character character constant [-Wmultichar]
   16 |         else cout<<'Yes';
      |                    ^~~~~
a.cc: In function 'int main()':
a.cc:15:30: error: expected ';' before 'cout'
   15 |         else (W-r<x || H-r<y)cout<<'No';
      |                              ^~~~
      |                              ;
a.cc:16:9: error: 'else' without a previous 'if'
   16 |         else cout<<'Yes';
      |         ^~~~
Language: C++

W, H, x, y, r = map(int, input().split())

if x-r>=0 and x+r<=W and y-r>=0 and y+r<=H:
    print('Yes')
else:
    print('No')



Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'W' does not name a type
    1 | W, H, x, y, r = map(int, input().split())
      | ^
Language: C++

#include<stdio.h>
int main(void)
{
    int x,y,r,h,w,a,b;
	scanf("%d %d %d %d %d",&w,&h,&x,&y,&r);
	a=x+r;
	b=y+r;
	if(w>=a && h>=b && y>= && x>=0){
	printf("Yes\n");
	}
	else{
	printf("No\n");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(w>=a && h>=b && y>= && x>=0){
      |                            ~^~~~~~~
a.cc:8:35: error: label 'x' used but not defined
    8 |         if(w>=a && h>=b && y>= && x>=0){
      |                                   ^
Language: C++

fun main(args: Array<String>) {
    var str = readLine()
    // val str = "5 4 2 2 1"
    if(str != null) {
        val ary = str.split(Regex("\\s+"))
        var num = arrayOf(0,0,0,0,0)
        for(i in ary.indices) {
            num[i] = ary[i].toInt()
        }
        val result = if(num[4]>num[2] || (num[2]+num[4])>num[0] || num[4]>num[3] || (num[3]+num[4])>num[1]) "No"
        else "Yes"
        println(result)
    }
 }


Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main(args: Array<String>) {
      | ^~~
Language: C++

#include<stdio.h>
int main()
{
 int w,h,x,y,z;
 scanf("%d%d%d%d%d",&w,&h,&x,&y,&z);
 if(((x-r>=0) && (y-r>=0))&&((x+r<=w)&&(y+r<=h)))
  printf("Yes\n");
 else
  printf("No\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'r' was not declared in this scope
    6 |  if(((x-r>=0) && (y-r>=0))&&((x+r<=w)&&(y+r<=h)))
      |         ^
Language: C++

#include<stdio.h>
int main()
{
 int w,h,x,y,z;
 scanf("%d%d%d%d%d",&w,&h,&x,&y,&r);
 if(((x-r>=0) && (y-r>=0))&&((x+r<=w)&&(y+r<=h)))
  printf("Yes\n");
 else
  printf("No\n");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:34: error: 'r' was not declared in this scope
    5 |  scanf("%d%d%d%d%d",&w,&h,&x,&y,&r);
      |                                  ^
Language: C++

//data2のほうが大きいときtrue
//data2のほうが小さいときfalse
bool LargeTrue(int data1, int data2) {
	if (data1 <= data2) {
		return true;
	}
	else {
		return false;
	}
}


//方向check
//範囲内であるならTrue
//範囲外であるならFlase
bool Dircheck(int CntCircle,int radius,int WidHei) {
	if (WidHei > 0) {
		return LargeTrue(CntCircle + radius, WidHei);
	}
	else if (WidHei <= 0) {
		return LargeTrue(WidHei, CntCircle - radius);
	}
}


int main(void)
{
	int W, h, x, y, r = 0;

	cin >> W >> h >> x >> y >> r;

	//x方向y方向両方Trueならば"Yes",以外"No"
	if (Dircheck(x, r, W) && Dircheck(y, r, h)) {
		cout << "Yes\n";
	}
	else {
		cout << "No\n";
	}


	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:30:9: error: 'cin' was not declared in this scope
   30 |         cin >> W >> h >> x >> y >> r;
      |         ^~~
a.cc:34:17: error: 'cout' was not declared in this scope
   34 |                 cout << "Yes\n";
      |                 ^~~~
a.cc:37:17: error: 'cout' was not declared in this scope
   37 |                 cout << "No\n";
      |                 ^~~~
a.cc: In function 'bool Dircheck(int, int, int)':
a.cc:23:1: warning: control reaches end of non-void function [-Wreturn-type]
   23 | }
      | ^
Language: C++

#include<stdio.h>

int main(){
    
    int w,h,r,x,y
    
    if(x<w && y<h){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'if'
    7 |     if(x<w && y<h){
      |     ^~
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else{
      |     ^~~~
Language: C++

#include<stdio.h>

int main(){
    
    int w,h,r,x,y
    
    if(x<w || y<h){
        printf("Yes\n");
    }
    else{
        printf("No\n");
    }
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'if'
    7 |     if(x<w || y<h){
      |     ^~
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else{
      |     ^~~~