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

public class Main {
	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner scan = new Scanner(System.in);

		int X = scan.nextInt();
		int A = scan.nextInt();
		int B = scan.nextInt();

		int delicious = B - A;//(賞味期限を過ぎた日数）
		
		if(X+1 < A){
			System.out.println("dangerous");
		} else if (delicious < 0) {
			System.out.println("delicious");
		} else {
			System.out.println("safe");
		}
		
		
		
	}
}


Compiler output:
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class MainA {

  public static void main(String[] args) throws IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();

    StringTokenizer st = new StringTokenizer(str);

    int x = Integer.parseInt(st.nextToken());
    int a = Integer.parseInt(st.nextToken());
    int b = Integer.parseInt(st.nextToken());

    if (a - b > 0) {
      System.out.println("delicious");
    } else {
      if (x + a - b >= 0) {
        System.out.println("safe");
      } else {
        System.out.println("dengerous");
      }
    }
    
  }
}


Compiler output:
Main.java:6: error: class MainA is public, should be declared in a file named MainA.java
public class MainA {
       ^
1 error
Language: C

#i n cl u d e <s t d i o . h>
i n t main ( )
{
i n t x , a , b ;
s c a n f (”%d%d%d ” , &x , &a , &b ) ;
i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ;
e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ;
e l s e p r i n t f ( ” d an ge r ou s \n ” ) ;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <s t d i o . h>
      |  ^
      |  if
main.c:2:1: error: unknown type name 'i'
    2 | i n t main ( )
      | ^
main.c:2:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 't'
    2 | i n t main ( )
      |     ^
main.c:2:5: error: unknown type name 't'
main.c:5:12: error: stray '\342' in program
    5 | s c a n f (<U+201D>%d%d%d <U+201D> , &x , &a , &b ) ;
      |            ^~~~~~~~
main.c:5:20: error: stray '\342' in program
    5 | s c a n f (<U+201D>%d%d%d <U+201D> , &x , &a , &b ) ;
      |                           ^~~~~~~~
main.c:6:6: error: stray '\342' in program
    6 | i f (<U+2212>a + b <= 0 ) p r i n t f ( <U+201D> d e l i c i o u s \n <U+201D> ) ;
      |      ^~~~~~~~
main.c:6:34: error: stray '\342' in program
    6 | i f (<U+2212>a + b <= 0 ) p r i n t f ( <U+201D> d e l i c i o u s \n <U+201D> ) ;
      |                                         ^~~~~~~~
main.c:6:54: error: stray '\' in program
    6 | i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ;
      |                                                      ^
main.c:6:57: error: stray '\342' in program
    6 | i f (<U+2212>a + b <= 0 ) p r i n t f ( <U+201D> d e l i c i o u s \n <U+201D> ) ;
      |                                                                       ^~~~~~~~
main.c:7:14: error: stray '\342' in program
    7 | e l s e i f (<U+2212>a + b <= x ) p r i n t f ( <U+201D> s a f e \n <U+201D> ) ;
      |              ^~~~~~~~
main.c:7:42: error: stray '\342' in program
    7 | e l s e i f (<U+2212>a + b <= x ) p r i n t f ( <U+201D> s a f e \n <U+201D> ) ;
      |                                                 ^~~~~~~~
main.c:7:52: error: stray '\' in program
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ;
      |                                                    ^
main.c:7:55: error: stray '\342' in program
    7 | e l s e i f (<U+2212>a + b <= x ) p r i n t f ( <U+201D> s a f e \n <U+201D> ) ;
      |                                                                     ^~~~~~~~
main.c:8:23: error: stray '\342' in program
    8 | e l s e p r i n t f ( <U+201D> d an ge r ou s \n <U+201D> ) ;
      |                       ^~~~~~~~
main.c:8:40: error: stray '\' in program
    8 | e l s e p r i n t f ( ” d an ge r ou s \n ” ) ;
      |                                        ^
main.c:8:43: error: stray '\342' in program
    8 | e l s e p r i n t f ( <U+201D> d an ge r ou s \n <U+201D> ) ;
      |                                                  ^~~~~~~~
Language: C++

#i n cl u d e <bits/stdc++.h>
i n t main ( )
{
i n t x , a , b ;
s c a n f (”%d%d%d ” , &x , &a , &b ) ;
i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ;
e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ;
e l s e p r i n t f ( ” d an ge r ou s \n ” ) ;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i n cl u d e <bits/stdc++.h>
      |  ^
      |  if
a.cc:5:12: error: extended character ” is not valid in an identifier
    5 | s c a n f (”%d%d%d ” , &x , &a , &b ) ;
      |            ^
a.cc:5:20: error: extended character ” is not valid in an identifier
    5 | s c a n f (”%d%d%d ” , &x , &a , &b ) ;
      |                    ^
a.cc:6:6: error: extended character − is not valid in an identifier
    6 | i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ;
      |      ^
a.cc:6:34: error: extended character ” is not valid in an identifier
    6 | i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ;
      |                                  ^
a.cc:6:54: error: stray '\' in program
    6 | i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ;
      |                                                      ^
a.cc:6:57: error: extended character ” is not valid in an identifier
    6 | i f (−a + b <= 0 ) p r i n t f ( ” d e l i c i o u s \n ” ) ;
      |                                                         ^
a.cc:7:14: error: extended character − is not valid in an identifier
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ;
      |              ^
a.cc:7:42: error: extended character ” is not valid in an identifier
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ;
      |                                          ^
a.cc:7:52: error: stray '\' in program
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ;
      |                                                    ^
a.cc:7:55: error: extended character ” is not valid in an identifier
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ” s a f e \n ” ) ;
      |                                                       ^
a.cc:8:23: error: extended character ” is not valid in an identifier
    8 | e l s e p r i n t f ( ” d an ge r ou s \n ” ) ;
      |                       ^
a.cc:8:40: error: stray '\' in program
    8 | e l s e p r i n t f ( ” d an ge r ou s \n ” ) ;
      |                                        ^
a.cc:8:43: error: extended character ” is not valid in an identifier
    8 | e l s e p r i n t f ( ” d an ge r ou s \n ” ) ;
      |                                           ^
a.cc:2:1: error: 'i' does not name a type
    2 | i n t main ( )
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int X,A,B;
	cin >> X >> A >> B;
	if (X < B - A)
	{
		cout << "dangerous" << endl;
	}
	
	else if (X == B - A)
	{
		cout << "delicious" << endl;
	}
	else if (A > B)
	{
		cout << "delicious" << endl;
	}
	else if (B - A == 0)
	{
		cout << "delicious" << endl;
	}
    else if (X > B - A)
	{
		cout << "safe" << endl;
	}
  return 0;
	


Compiler output:
a.cc: In function 'int main()':
a.cc:28:12: error: expected '}' at end of input
   28 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int X,A,B;
	cin >> X >> A >> B;
	C = B - A;
	if (X < C)
	{
		cout << "dangerous" << endl;
	}
	
	else if (X == B - A)
	{
		cout << "delicious" << endl;
	}
	else if (A > B)
	{
		cout << "delicious" << endl;
	}
    else (X > B - A)
		{
			cout << "safe" << endl;
		}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'C' was not declared in this scope
    7 |         C = B - A;
      |         ^
a.cc:21:21: error: expected ';' before '{' token
   21 |     else (X > B - A)
      |                     ^
      |                     ;
   22 |                 {
      |                 ~
Language: C

#include <stdio.h>
int main() {
	int a, b, c;
	scanf_s("%d%d%d",&a,&b,&c);
	if (b -c  >= 0) {
		printf("delicious");
	}else if (c - b <= a) {
		printf("safe");
	}
	else { 
		printf("dangerous");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d%d%d",&a,&b,&c);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int a, b, c;
	scanf("%d%d%d",&a,&b&c);
	if (b -c  >= 0) {
		printf("delicious");
	}else if (c - b <= X) {
		printf("safe");
	}
	else { 
		printf("dangerous");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:29: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d%d%d",&a,&b&c);
      |                           ~~^
      |                           |
      |                           int *
main.c:7:28: error: 'X' undeclared (first use in this function)
    7 |         }else if (c - b <= X) {
      |                            ^
main.c:7:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main() {
	int X, A, B;
	scanf_s("%d %d %d",&X,&A,&B);
	if (B - A >= 0) {
		printf("delicious");
	}else if (A - B <= X) {
		printf("safe");
	}
	else { 
		printf("dangerous");
	}
	scanf_s("%d", &X);
	return 0;
}
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d %d %d",&X,&A,&B);
      |         ^~~~~~~
      |         scanf
main.c: At top level:
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include <stdio.h>
int main() {
	int X, A, B;
	scanf_s("%d %d %d",&X,&A,&B);
	if (B - A >= 0) {
		printf("delicious");
	}else if (A - B <= X) {
		printf("safe");
	}
	else { 
		printf("dangerous");
	}
	scanf_s("%d", &X);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d %d %d",&X,&A,&B);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
int main() {
	int X, A, B;
	scanf_s("%d %d %d",&X,&A,&B);
	if (B - A >= 0) {
		printf("delicious");
	}else if (A - B <= X) {
		printf("safe");
	}
	else { 
		printf("dangerous");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d %d %d",&X,&A,&B);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void)
{
  int x, a, b, ;
  int A;

  scanf("%d", &x);
  scanf("%d", &a);
  scanf("%d", &b);

  if(a>=b){
          printf("delicious\n");
          return 0;
    }

  else{
        if(x>=b-a){
               printf("safe\n");
               return 0;
           }

        else{
          printf("dangerous\n");
            return 0;
            }
      }
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected identifier or '(' before ';' token
    5 |   int x, a, b, ;
      |                ^
Language: Java

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Scanner;

public class Main {
	static Scanner sc;
	public static void main(String[] args)throws Exception{
		InputStream in = System.in;
		sc = new Scanner(in);

		while(true){
			int a, b, x;
			x = sc.nextInt();
			a = sc.nextInt();
			b = sc.nextInt();

			if(Math.abs(a-b) > x){
			 System.out.println("dangerous");
			 break;
		 } else {
			 if(a-b >= 0) {
				 System.out.println("delicious");
				 break;
			} else {
				System.out.println("safe");
				break;
			} else
		}
	}
}


Compiler output:
Main.java:28: error: illegal start of statement
		}
		^
Main.java:27: error: 'else' without 'if'
			} else
			  ^
Main.java:30: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Scanner;

public class Main {
	static Scanner sc;
	public static void main(String[] args)throws Exception{
		InputStream in = System.in;
		sc = new Scanner(in);

		while(true){
			int a, b, x;
			x = sc.nextInt();
			a = sc.nextInt();
			b = sc.nextInt();

			if(Math.abs(a-b) <= x) {
				System.out.println("safe");
				break;
			} else {
				if(a-b >= 0) {
				System.out.println("delicious");
				break;
			} else {
				System.out.println("dangeous");
				break;
			}
		}
	}
}


Compiler output:
Main.java:30: error: reached end of file while parsing
}
 ^
1 error
Language: C

// 170613_test.cpp : メイン プロジェクト ファイルです。

#include "stdafx.h"
#include "stdio.h"

using namespace System;

int main()
{
    int x,a,b;
    //char s[101];
    // 整数の入力
    scanf("%d %d %d", &x,&a,&b);

	if (b <= a) {
		printf("delicious");
	} else if (b > a && b <= x) {
		printf("safe");
	} else {
		printf("dangerous");
	}
	//scanf("%s",s);
    return 0;
}

Compiler output:
main.c:3:10: fatal error: stdafx.h: No such file or directory
    3 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Scanner;

public class main {
	static Scanner sc;
	public static void main(String[] args)throws Exception{
		InputStream in = System.in;
		//InputStream in = new FileInputStream("/Users/icpc2016/Downloads/input");
		//InputStream in = new FileInputStream("/Users/icpc2016/Documents/workspace/ICPC2016/src/sampleInput.txt");
		sc = new Scanner(in);

		while(true){
			//int w = sc.nextInt();
			//if(w == 0) break;
			int a, b, x;
			x = sc.nextInt();
			a = sc.nextInt();
			b = sc.nextInt();

			if(a-b > 0) {
				System.out.println("delicious");
				break;
			} else if(Math.abs(a-b) < x) {
				System.out.println("safe");
				break;
			} else if(Math.abs(a-b) > x){
				System.out.println("dangeous");
				break;
			}
		}
	}
}


Compiler output:
Main.java:5: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
Language: C

#include <stdio.h>

int main(){
  int X,A,B;
  scanf("%d %d %d",&X,&A,&B);
  if(B<=A){
    printf("delicious\n");
  }
  if((A<B) && (B<=X+A)){
    printf("safe\n");
  }
  if(B>X+A){
    printf("dangerous\n");
  }
 return0;
}


Compiler output:
main.c: In function 'main':
main.c:15:2: error: 'return0' undeclared (first use in this function)
   15 |  return0;
      |  ^~~~~~~
main.c:15:2: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.*;
public class Main{
      public static void main{
             int x,a,b;
             Scanner sc=new Scanner(System.in);
             x=sc.nextInt();
             a=sc.nextInt();
             b=sc.nextInt();
              if(b-a>0&&b-a<x)
              System.out.println("safe");
              else if(b-a<0)
              System.out.println("delicious");
              else if(b-a>=x)
              System.out.println("dangerous");
     }
}



Compiler output:
Main.java:3: error: '(' expected
      public static void main{
                             ^
1 error
Language: Java

import java.util.Scanner;

public class MainA {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		int A = sc.nextInt();
		int B = sc.nextInt();
		if(B - A < 0) {
			System.out.println("delicious");
		} else if (B - A <= X ) {
			System.out.println("safe");
		} else if (B - A > X){
			System.out.println("dangerous");
		}
	}
}


Compiler output:
Main.java:3: error: class MainA is public, should be declared in a file named MainA.java
public class MainA {
       ^
1 error
Language: C++

import java.util.*;
class Experied{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int a = sc.nextInt();
		int b = sc.nextInt();
		int keika =  b-a;

		if(b<=a){ //x<=b-a
			System.out.println("delicious");
		}else if(b<=a+x){
			System.out.println("safe");
		}else if(b<=x+1){
			System.out.println("safe");
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:15: error: expected ':' before 'static'
    3 |         public static void main(String[] args) {
      |               ^~~~~~~
      |               :
a.cc:3:33: error: 'String' has not been declared
    3 |         public static void main(String[] args) {
      |                                 ^~~~~~
a.cc:3:42: error: expected ',' or '...' before 'args'
    3 |         public static void main(String[] args) {
      |                                          ^~~~
a.cc:18:2: error: expected ';' after class definition
   18 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Experied::main(int*)':
a.cc:4:17: error: 'Scanner' was not declared in this scope
    4 |                 Scanner sc = new Scanner(System.in);
      |                 ^~~~~~~
a.cc:5:25: error: 'sc' was not declared in this scope
    5 |                 int x = sc.nextInt();
      |                         ^~
a.cc:11:25: error: 'System' was not declared in this scope
   11 |                         System.out.println("delicious");
      |                         ^~~~~~
a.cc:13:25: error: 'System' was not declared in this scope
   13 |                         System.out.println("safe");
      |                         ^~~~~~
a.cc:15:25: error: 'System' was not declared in this scope
   15 |                         System.out.println("safe");
      |                         ^~~~~~
Language: C++

#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
#include <sstream>
#include <deque>
#define ll long long
using namespace std;
const int maxn=100000;
int a[maxn];
int main(){
	
	memset(a,0,sizeof(a));
	
	int N,
	cin>>N;
	for(int i=1;i<N+1;i++){
		cin>>a[i];
		
	}
	int counter=0;
	int cur=1;
	bool flag=1;
	while(flag){
		cur=a[cur];
		counter++;
		if(cur==2){
			flag=0;
			cout<<counter;
			return 0;
		}
		if(counter>N){
			flag=0;
			cout<<"-1";
			return 0;
		}
		
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: expected initializer before '>>' token
   20 |         cin>>N;
      |            ^~
Language: C++

#include<stdio.h>

int main(){
int a,b,c;
scanf("%d%d%d"，&a,&b,&c);
if(b<=a) printf("delicious\n");
else if(b>a+b) prnitf("dangerous\n");
else puts("safe");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: unable to find string literal operator 'operator""\U0000ff0c' with 'const char [7]', 'long unsigned int' arguments
    5 | scanf("%d%d%d"，&a,&b,&c);
      |       ^~~~~~~~~~
a.cc:7:16: error: 'prnitf' was not declared in this scope; did you mean 'printf'?
    7 | else if(b>a+b) prnitf("dangerous\n");
      |                ^~~~~~
      |                printf
Language: C++

#include<iostream>
using namespace std;
 
long X,A,B;
 
int main(){
	scanf("%d %d %d",&X,&A,&B);
	     
	
	if(a-b >= 0) printf("delicious\n");
	else if(X  +a-b>= 0) printf("safe\n");
	else printf("dangerous\n");
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'a' was not declared in this scope
   10 |         if(a-b >= 0) printf("delicious\n");
      |            ^
a.cc:10:14: error: 'b' was not declared in this scope
   10 |         if(a-b >= 0) printf("delicious\n");
      |              ^
Language: C++

#include<iostream>
using namespace std;
 
int X,A,B;
 
int main(){
	scanf("%d %d %d",&X,&A,&B);
	      int c=a-b;
	
	if(c >= 0) printf("delicious\n");
	else if(X  +c>= 0) printf("safe\n");
	else printf("dangerous\n");
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'a' was not declared in this scope
    8 |               int c=a-b;
      |                     ^
a.cc:8:23: error: 'b' was not declared in this scope
    8 |               int c=a-b;
      |                       ^
Language: C++

#include<cstdio>
 
int X,A,B;
 
int main(){
	scanf("%d %d %d",&X,&A,&B);
	      
	
	if(a-b >= 0) printf("delicious\n");
	else if(X  + a-b>= 0) printf("safe\n");
	else printf("dangerous\n");
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'a' was not declared in this scope
    9 |         if(a-b >= 0) printf("delicious\n");
      |            ^
a.cc:9:14: error: 'b' was not declared in this scope
    9 |         if(a-b >= 0) printf("delicious\n");
      |              ^
Language: C

#include <stdio.h>long amari = 1e9 + 7;long long int fact(int in){  long long int out=1, i;  for(i=1; i<=in; ++i){    out *= i;    out = out%amari;  }  return out;}int main(void){  int n, m;  long long int na, ma;  scanf("%d%d", &n, &m);  if (n-m  > 1 || m-n >1) {    printf("%d\n", 0);    return 0;  }  na = fact(n);  ma = fact(m);    if (n==m){    printf("%lld\n", na*ma*2%amari);  } else{    printf("%lld\n", na*ma%amari);  }  return 0;}

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include <stdio.h>long amari = 1e9 + 7;long long int fact(int in){  long long int out=1, i;  for(i=1; i<=in; ++i){    out *= i;    out = out%amari;  }  return out;}int main(void){  int n, m;  long long int na, ma;  scanf("%d%d", &n, &m);  if (n-m  > 1 || m-n >1) {    printf("%d\n", 0);    return 0;  }  na = fact(n);  ma = fact(m);    if (n==m){    printf("%lld\n", na*ma*2%amari);  } else{    printf("%lld\n", na*ma%amari);  }  return 0;}
      |                   ^~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;
int main ()
{
	long long x,a,b;
	scanf("%d%d%d",&x,&a,&b);
	if(b-a<1) cout<<"delicious"<<endl;
	else  if (b>a&&(b-a)<()x+1)) cout<<"safe"<<endl;
	else if(b>a&&b-a>=x) cout<<"dangerous"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:31: error: expected primary-expression before ')' token
    8 |         else  if (b>a&&(b-a)<()x+1)) cout<<"safe"<<endl;
      |                               ^
a.cc:8:32: error: expected ')' before 'x'
    8 |         else  if (b>a&&(b-a)<()x+1)) cout<<"safe"<<endl;
      |                  ~             ^
      |                                )
a.cc:8:36: error: expected primary-expression before ')' token
    8 |         else  if (b>a&&(b-a)<()x+1)) cout<<"safe"<<endl;
      |                                    ^
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        String temp[] = str.split(" ");
        int a = new Integer(temp[1]);
        int b = new Integer(temp[2]);
        int x = new Integer(temp[0]);
        if((a - b)< 0){
            System.out.println("delicious");
        }else if((a - b) < x){
            System.out.println("safe");
        }else{
            System.out.println("dangerous");
        }
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
Main.java:6: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
        int a = new Integer(temp[1]);
                ^
Main.java:7: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
        int b = new Integer(temp[2]);
                ^
Main.java:8: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
        int x = new Integer(temp[0]);
                ^
2 errors
3 warnings
Language: C++

#include<iostream>
using namespace std;

int main()
{
    int x,a,b;
    cin >> x >> a >> b;
    if(a-b>=0) { cout << "delicious" << endl; }
    else(a-b<0){
        if(b-a>x) { cout << "dengerous" << endl; }
        else if(b-a<=x) { cout << "safe" << endl; }
        else {}
    }
    else{}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ';' before '{' token
    9 |     else(a-b<0){
      |                ^
      |                ;
a.cc:14:5: error: 'else' without a previous 'if'
   14 |     else{}
      |     ^~~~
Language: C++

int main（）
｛
int x,a,b;
if(b<=a)
 cout<<"delicious";
else if(b-a<=x)
 cout<<"safe";
else if(b-a>x)
 cout<<"dangerous";
return 0;
｝

Compiler output:
a.cc:2:1: error: expected initializer before '\U0000ff5b'
    2 | ｛
      | ^~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(b<=a)
      | ^~
a.cc:6:1: error: expected unqualified-id before 'else'
    6 | else if(b-a<=x)
      | ^~~~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else if(b-a>x)
      | ^~~~
a.cc:10:1: error: expected unqualified-id before 'return'
   10 | return 0;
      | ^~~~~~
a.cc:11:1: error: '\U0000ff5d' does not name a type
   11 | ｝
      | ^~
Language: C

#include<stdio.h>
 
int main(void){
	int X,A,B
        scanf("%d", &X);
        scanf("%d", &A);
        scanf("%d", &B);
	if (B < A) {
		printf("delicious");
	}else if (B < A+X+1){
		printf("safe");
	}else{
		printf("dangerous");
	}
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |         scanf("%d", &X);
      |         ^~~~~
main.c:7:22: error: 'B' undeclared (first use in this function)
    7 |         scanf("%d", &B);
      |                      ^
main.c:7:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>

using namespace std;

int main() {
	int x, a, b;
	cin >> x >> a >> b;

	if (a >= b)
		cout << "delicious" << endl;
	else {
		if (s + a >= b)
			cout << "safe" << endl;
		else
			cout << "dangerous" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 's' was not declared in this scope
   12 |                 if (s + a >= b)
      |                     ^
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int X = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();
        String [] S = {"delicious","safe","dangerous"}
        System.out.println(S[judge(X,A,B)]);
    }
    static int judge(int X, int A, int B){
        if(A>=B)return 0;
        if(X>=B-A)return 1;
        return 2;
    }
}


Compiler output:
Main.java:9: error: ';' expected
        String [] S = {"delicious","safe","dangerous"}
                                                      ^
1 error
Language: C++

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

int main()
{
    long long x,a,b;
    while(scanf("%lld%lld%lld",&x,&a,&b)!=EOF){
        if((b-a)>x)printf("dangerous\n");
        else ((b-a)<x&&(b-a)<=0)printf("delicious\n");
        else ((b-a)<x&&(b-a)>0)printf("safe\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:33: error: expected ';' before 'printf'
   11 |         else ((b-a)<x&&(b-a)<=0)printf("delicious\n");
      |                                 ^~~~~~
      |                                 ;
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else ((b-a)<x&&(b-a)>0)printf("safe\n");
      |         ^~~~
a.cc:12:32: error: expected ';' before 'printf'
   12 |         else ((b-a)<x&&(b-a)>0)printf("safe\n");
      |                                ^~~~~~
      |                                ;
Language: C

#include<stdio.h>
int main()
{
	int X,A,B;
	scanf("%d %d %d",&X,&A,&B);
		if(B<=A) printf("delicious\n");
    	if(X+A>=B&&B>A) printf("safe\n");
    	if(X+A<B)prntf("dangerous\n");	 
}
	

Compiler output:
main.c: In function 'main':
main.c:8:18: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |         if(X+A<B)prntf("dangerous\n");
      |                  ^~~~~
      |                  printf
Language: C

#include<stdio.h>
int main()
{
	int X,A,B;
	while(scanf("%d%d%d",&X,&A,&B)!=EOF)
	{
		if(B<=A) printf("delicious\n");
    	if(X+A)>=B&&B>A) printf("safe\n");
    	if(X+A<B)prntf("dangerous\n");
	}	 
}
	

Compiler output:
main.c: In function 'main':
main.c:8:16: error: expected expression before '>=' token
    8 |         if(X+A)>=B&&B>A) printf("safe\n");
      |                ^~
main.c:8:24: error: expected statement before ')' token
    8 |         if(X+A)>=B&&B>A) printf("safe\n");
      |                        ^
main.c:9:18: error: implicit declaration of function 'prntf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |         if(X+A<B)prntf("dangerous\n");
      |                  ^~~~~
      |                  printf
Language: Java

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);

		int x = Integer.parseInt(scan.next());//賞味期限を X 日まで過ぎた食品を食べてもお腹を壊しません
		int a = Integer.parseInt(scan.next());//賞味期限の A 日前
		int b = Integer.parseInt(scan.next());//買ってから B 日後

		if(a <= b){//賞味期限または期限を過ぎている
			int Sa = Math.abs(a-b);//期限超過日数
			if(Sa < x+1){//safe
				System.out.println("safe");
			}
			else{//お腹壊した
				System.out.println("dangerous");
			}
		}
		else {
			//期限を過ぎていない
			System.out.println("delicious");
		}
	}

}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

#define ll long long
using namespace std;

int x,a,b;

int main(){
  cin >> x>>a>>b;

  if((b-a)>x)cout << "dangerous"<<endl;
  else if(b=<a) cout << "delicious"<< endl;
  else cout << "safe"<<endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected primary-expression before '<' token
   15 |   else if(b=<a) cout << "delicious"<< endl;
      |             ^
Language: Java

import java.util.*;
	public static void Main(String args[]){
		Scanner scan = new Scanner(System.in);

		int x = Integer.parseInt(scan.next());//賞味期限を X 日まで過ぎた食品を食べてもお腹を壊しません
		int a = Integer.parseInt(scan.next());;//賞味期限の A 日前
		int b = Integer.parseInt(scan.next());;//買ってから B 日後

		if(a <= b){//賞味期限または期限を過ぎている
			int Sa = Math.abs(a-b);//期限超過日数
			if(Sa < x+1){//safe
				System.out.println("safe");
			}
			else{//お腹壊した
				System.out.println("dangerous");
			}
		}
		else {
			//期限を過ぎていない
			System.out.println("delicious");
		}
	}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	public static void Main(String args[]){
	              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

/*
    AUTHOR:hruday pabbisetty
    NIT ROURKElA(My_College_Sucks)
*/
#include <bits/stdc++.h>
using namespace std;
#define opt ios_base::sync_with_stdio(0)
#define lli long long int
#define ulli unsigned long long int
#define I int
#define S string
#define D double
#define rep(i,a,b) for(i=a;i<b;i++)
#define repr(i,a,b) for(i=a;i>b;i--)
#define in(n) scanf("%lld",&n)
#define in2(a,b) scanf("%lld %lld",&a,&b)
#define in3(a,b,c) scanf("%lld %lld %lld",&a,&b,&c)
#define out(n) printf("%lld\n",n)
#define inu(a) scanf("%lld",&a)
#define outu(a) printf("%llu",a)
#define ins(s) scanf("%s",&s)
#define outs(s) printf("%s",s)
#define nl printf("\n")
#define mod 1000000007
#define inf 100000000000000
typedef long long       ll;
typedef pair<lli,lli>  plli;
typedef vector<lli>     vlli;
typedef vector<ulli>    vulli;
typedef vector<ll>      vll;
typedef vector<string>  vs;
typedef vector<plli>     vplli;
#define MM(a,x)  memset(a,x,sizeof(a));
#define ALL(x)   (x).begin(), (x).end()
#define P(x)       cerr<<"{"#x<<" = "<<(x)<<"}"<<endl;
#define P2(x,y)       cerr<<"{"#x" = "<<(x)<<", "#y" = "<<(y)<<"}"<<endl;
#define P3(x,y,z)  cerr<<"{"#x" = "<<(x)<<", "#y" = "<<(y)<<", "#z" = "<<(z)<<"}"<<endl;
#define P4(x,y,z,w)cerr<<"{"#x" = "<<(x)<<", "#y" = "<<(y)<<", "#z" = "<<(z)<<", "#w" = "<<(w)<<"}"<<endl;
#define PP(x,i)     cerr<<"{"#x"["<<i<<"] = "<<x[i]<<"}"<<endl;
#define TM(a,b)     cerr<<"{"#a" -> "#b": "<<1000*(b-a)/CLOCKS_PER_SEC<<"ms}\n";
#define UN(v)    sort(ALL(v)), v.resize(unique(ALL(v))-v.begin())
#define mp make_pair
#define pb push_back
#define f first
#define s second
#define sz() size()
#define nl cout<<"\n"
#define MX1 100005
#define MX2 1000005

#define bs binary_search
#define lb lower_bound
#define ub upper_bound

lli power(lli a,lli b)
    {
    lli value;
    if(b==0)
        {
        return 1;
    }
    else if(b%2==0)
        {
        value=power(a,b/2)%mod;
        return(value*value)%mod;
    }
    else
        {
        value=power(a,b/2)%mod;
        return ((a*value)%mod*(value))%mod;
    }
}
int main()
{
      /*  #ifndef ONLINE_JUDGE
        freopen("input.txt","r",stdin);
        freopen("output.txt","w",stdout);
        #endif*/
    opt;
    lli x,a,b;
    cin>>x>>a>>b;
    if(a+b==x)
    {
        cout<<"delicious";
    }
    else if(a+b<x)

{cout<<"safe";
}
else
{
    cout<<"dangerous";
}


Compiler output:
a.cc:47:9: warning: "nl" redefined
   47 | #define nl cout<<"\n"
      |         ^~
a.cc:23:9: note: this is the location of the previous definition
   23 | #define nl printf("\n")
      |         ^~
a.cc: In function 'int main()':
a.cc:93:2: error: expected '}' at end of input
   93 | }
      |  ^
a.cc:74:1: note: to match this '{'
   74 | {
      | ^
Language: C++

//all possible//
#include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c,i;
	cin>>a>>b>>c;
	if((a-b+c)<=a)
	cout<<"delicious";
	else
	if((a-(a-b+c))<=a)
	cout<<"safe";
	else
	
	

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

int main(){
int a,b,c;
cin>>a>>b>>c;
if(b>=c){
cout<<"delicious"<<endl;
}
else if(a<=c-b)
cout<<"safe"<<endl;
else
cout<<"dangerous"<<endl;

retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:1: error: 'retrun' was not declared in this scope
   16 | retrun 0;
      | ^~~~~~
Language: C++

#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
	int x, a, b;
	while (cin>>x>>a>>b)
	{
		if (a >= b) cout << "delicious"<<endl;
		else if (a < b)
		{
			if (b - a < =x) cout << "safe" << endl;
			else if (b - a > x) cout << "dangerous" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:37: error: expected primary-expression before '=' token
   12 |                         if (b - a < =x) cout << "safe" << endl;
      |                                     ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define forn(i, s, f) for(int i = (s); i <= (f); ++i)
#define for1(i, f, s) for(int i = (f); i >= (s); --i)
#define fora(i, x) for (auto i : x)
#define show(x) cout << #x << " = " << x << " ";
#define skip continue;
#define pb push_back
#define _1 first
#define _2 second

typedef long long ll;

const int N3 = 1e3 + 5;
const int N4 = 1e4 + 5;
const int N5 = 1e5 + 5;
const int N6 = 1e6 + 5;
const int N7 = 1e7 + 5;
const int N8 = 1e8 + 5;
const int N9 = 1e9 + 5;
const int mod = N9 + 2;

int x, a, b;

int main()x
{
    cin >> x >> a >> b;
    if (b - a > 0 && b - a <= x)
    {
        cout << "safe";
        return 0;
    }
    if (b - a > 0 && b - a > x)
    {
        cout << "dangerous";
        return 0;
    }
    if (b - a < 0)
    {
        cout << "delicious";
        return 0;
    }
}


Compiler output:
a.cc:27:11: error: expected initializer before 'x'
   27 | int main()x
      |           ^
Language: C++

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

int main()
{
	int a, b x;
	scanf("%d %d %d", &x, &a,&b);
	if((x+a)-b>=0){
		if(a>b){
			printf("delisious");
		} else {
			printf("safe");
		}
	} else {
		printf("dangerous");
		
	}
	
	return 0;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected initializer before 'x'
    6 |         int a, b x;
      |                  ^
a.cc:7:28: error: 'x' was not declared in this scope
    7 |         scanf("%d %d %d", &x, &a,&b);
      |                            ^
a.cc:7:35: error: 'b' was not declared in this scope
    7 |         scanf("%d %d %d", &x, &a,&b);
      |                                   ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <climits>
#include <ctime>

const int len = 100010;
int n,x,a,b;

int main() {
   //freopen("test.in","r",stdin);
    //freopen("test.out","w",stdout);
    cin >> x >> a >> b;
    n = -a+b;
    if (n<-x) cout << "dangerous" << endl;
    else {
        if (n<=0) cout << "delicious" << endl;
        else cout << "safe" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   16 |     cin >> x >> a >> b;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |     if (n<-x) cout << "dangerous" << endl;
      |               ^~~~
      |               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |     if (n<-x) cout << "dangerous" << endl;
      |                                      ^~~~
      |                                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:20:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         if (n<=0) cout << "delicious" << endl;
      |                   ^~~~
      |                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   20 |         if (n<=0) cout << "delicious" << endl;
      |                                          ^~~~
      |                                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:21:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |         else cout << "safe" << endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:21:32: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   21 |         else cout << "safe" << endl;
      |                                ^~~~
      |                                std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>

using namespace std

int main()
{
   int a[3];
   cin>>a[0]>>a[1]>>a[2];
   if(a[2]-a[1]>a[0])
   cout<<"dangerous"<<endl;
   if(a[0]=>a[1])
   cout<<"delicious"<<endl;
   else cout<<"safe"<<endl;
   return 0;
}



Compiler output:
a.cc:3:20: error: expected ';' before 'int'
    3 | using namespace std
      |                    ^
      |                    ;
    4 | 
    5 | int main()
      | ~~~                 
a.cc: In function 'int main()':
a.cc:11:12: error: expected primary-expression before '>' token
   11 |    if(a[0]=>a[1])
      |            ^
Language: C++

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

int main()
{
	int a, b x;
	scanf("%d %d %d", x, a,b);
	if((x+a)-b>=0){
		if(a>b){
			printf("delisious");
		} else {
			printf("safe");
		}
	} else {
		printf("dangerous");
		
	}
	
	return 0;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected initializer before 'x'
    6 |         int a, b x;
      |                  ^
a.cc:7:27: error: 'x' was not declared in this scope
    7 |         scanf("%d %d %d", x, a,b);
      |                           ^
a.cc:7:32: error: 'b' was not declared in this scope
    7 |         scanf("%d %d %d", x, a,b);
      |                                ^
Language: C++

#include <cstdio>

using namespace std::

int main(void)
{
	int x, a, b;

	scanf("%d %d %d", &x, &a, &b);
	
	if (a >= b) {
		printf("delicious\n");
	}
	else if (b - a <= x) {
		printf("safe\n")
	}
	else {
		printf("dangerous\n");
	}

	return 0;
}

Compiler output:
a.cc:5:1: error: expected identifier before 'int'
    5 | int main(void)
      | ^~~
a.cc:3:22: error: expected ';' before 'int'
    3 | using namespace std::
      |                      ^
      |                      ;
    4 | 
    5 | int main(void)
      | ~~~                   
a.cc: In function 'int main()':
a.cc:15:33: error: expected ';' before '}' token
   15 |                 printf("safe\n")
      |                                 ^
      |                                 ;
   16 |         }
      |         ~
Language: Java

import java.util.Scanner;

/**
 * Created by dizzyvn on 6/24/17.
 */
public class A {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();

        int z = b - a;

        if (z < 0) {
            System.out.println("delicious");
        }
        else if (z <= x) {
            System.out.println("safe");
        } else {
            System.out.println("dangerous");
        }
    }
}

Compiler output:
Main.java:6: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

#include <stdio.h>

int main(void)
{
	int x, a, b;

	scanf("%d %d %d", &x, &a, &b);
	
	if (a >= b) {
		printf("delicious\n");
	}
	else if (b - a <= x) {
		printf("safe\n")
	}
	else {
		printf("dangerous\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: expected ';' before '}' token
   13 |                 printf("safe\n")
      |                                 ^
      |                                 ;
   14 |         }
      |         ~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int x,a,b;
  cin >> x >> a >> b;
  if(a <= b){
    cout <<"delicious\n";
  }elif(b-a <= x){
    cout <<"safe\n";
  }else{
    cout << "dangerous\n";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:4: error: 'elif' was not declared in this scope
   10 |   }elif(b-a <= x){
      |    ^~~~
a.cc:12:4: error: 'else' without a previous 'if'
   12 |   }else{
      |    ^~~~
Language: C

#include <stdio.h>

int main(void)
{
	int x, a, b;

	scanf("%d %d %d", &x, &a, &b);
	
	if (a >= b) {
		printf("delicious\n");
	}
	else if (b - a <= x) {
		printf("safe\n")
	}
	else {
		printf("dangerous\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:33: error: expected ';' before '}' token
   13 |                 printf("safe\n")
      |                                 ^
      |                                 ;
   14 |         }
      |         ~
Language: Java

import java.util.Scanner;

/**
 * Created by dizzyvn on 6/24/17.
 */
public class A {
    public static void Main(String[] args){
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();
        int a = sc.nextInt();
        int b = sc.nextInt();

        int z = b - a;

        if (z < 0) {
            System.out.println("delicious");
        }
        else if (z <= x) {
            System.out.println("safe");
        } else {
            System.out.println("dangerous");
        }
    }

}


Compiler output:
Main.java:6: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: Java

public class Main{

	public static void main(String[] args){
		new Main().solve();
	}
	
	void solve(){
		Scanner sc=new Scanner(System.in);
		int X=sc.nextInt();
		int A=sc.nextInt();
		int B=sc.nextInt();
		if(A>=B){
			System.out.println("delicious");
		}else if(B-A<=X){
			System.out.println("safe");
		}else{
			System.out.println("dangerous");
		}
	}
	
}

Compiler output:
Main.java:8: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
		Scanner sc=new Scanner(System.in);
		               ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

def main(argv)
  (x, a, b) = STDIN.gets.chomp.split(' ').map(&:to_i)
  if b <= a then
    STDOUT.puts 'delicious'
  elsif b <= x + a then
    STDOUT.puts 'safe'
  else
    STDOUT.puts 'dangerous'
  end
end

if self.to_s == 'main' then
  main(ARGV)
end

Compiler output:
a.cc:4:17: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    4 |     STDOUT.puts 'delicious'
      |                 ^~~~~~~~~~~
a.cc:6:17: warning: multi-character character constant [-Wmultichar]
    6 |     STDOUT.puts 'safe'
      |                 ^~~~~~
a.cc:8:17: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    8 |     STDOUT.puts 'dangerous'
      |                 ^~~~~~~~~~~
a.cc:12:17: warning: multi-character character constant [-Wmultichar]
   12 | if self.to_s == 'main' then
      |                 ^~~~~~
a.cc:1:1: error: 'def' does not name a type
    1 | def main(argv)
      | ^~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <utility>
#include <sys/time.h>
#include <cmath>

using namespace std;

void solve(int x, int a, int b) {
    if (b =< a) {
        std::cout << "delicious" << std::endl;
    } else if(b =< a+x){
        std::cout << "safe" << std::endl;
    } else {
        std::cout << "dangerous" << std::endl;
    }
}

int main() {
    struct timeval start,end;
    long long span;
    int x, a, b;

    gettimeofday(&start,NULL);

    std::cin >> x, a, b;
    solve(x, a, b);

    gettimeofday(&end,NULL);
    span = (end.tv_sec -start.tv_sec)*1000000LL + (end.tv_usec - start.tv_usec);
    std::cerr << "--Total Time: " << span/1000 << "ms" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'void solve(int, int, int)':
a.cc:13:12: error: expected primary-expression before '<' token
   13 |     if (b =< a) {
      |            ^
a.cc:15:18: error: expected primary-expression before '<' token
   15 |     } else if(b =< a+x){
      |                  ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int q,w,e;
    cin>>q>>w>.e;
    if(q+w<=e){
        if(e-w>=0)
            cout<<"delicious";
        else
            cout<<"safe";
    }else
        cout<<"dangerous";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected primary-expression before '.' token
    5 |     cin>>q>>w>.e;
      |               ^