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

#include <stdio.h>
int main ()
{
int x , a , b ;
scanf (”%d%d%d ” , &x , &a , &b ) ;
if (−a + b <= 0 ) printf ( ”delicious\n ” ) ;
else if (−a + b <= x ) printf ( ”safe\n ” ) ;
else printf ( ”dangerous\n ” ) ;
}

Compiler output:
a.cc:5:8: error: extended character ” is not valid in an identifier
    5 | scanf (”%d%d%d ” , &x , &a , &b ) ;
      |        ^
a.cc:5:16: error: extended character ” is not valid in an identifier
    5 | scanf (”%d%d%d ” , &x , &a , &b ) ;
      |                ^
a.cc:6:5: error: extended character − is not valid in an identifier
    6 | if (−a + b <= 0 ) printf ( ”delicious\n ” ) ;
      |     ^
a.cc:6:28: error: extended character ” is not valid in an identifier
    6 | if (−a + b <= 0 ) printf ( ”delicious\n ” ) ;
      |                            ^
a.cc:6:38: error: stray '\' in program
    6 | if (−a + b <= 0 ) printf ( ”delicious\n ” ) ;
      |                                      ^
a.cc:6:41: error: extended character ” is not valid in an identifier
    6 | if (−a + b <= 0 ) printf ( ”delicious\n ” ) ;
      |                                         ^
a.cc:7:10: error: extended character − is not valid in an identifier
    7 | else if (−a + b <= x ) printf ( ”safe\n ” ) ;
      |          ^
a.cc:7:33: error: extended character ” is not valid in an identifier
    7 | else if (−a + b <= x ) printf ( ”safe\n ” ) ;
      |                                 ^
a.cc:7:38: error: stray '\' in program
    7 | else if (−a + b <= x ) printf ( ”safe\n ” ) ;
      |                                      ^
a.cc:7:41: error: extended character ” is not valid in an identifier
    7 | else if (−a + b <= x ) printf ( ”safe\n ” ) ;
      |                                         ^
a.cc:8:15: error: extended character ” is not valid in an identifier
    8 | else printf ( ”dangerous\n ” ) ;
      |               ^
a.cc:8:25: error: stray '\' in program
    8 | else printf ( ”dangerous\n ” ) ;
      |                         ^
a.cc:8:28: error: extended character ” is not valid in an identifier
    8 | else printf ( ”dangerous\n ” ) ;
      |                            ^
a.cc: In function 'int main()':
a.cc:5:8: error: '\U0000201d' was not declared in this scope
    5 | scanf (”%d%d%d ” , &x , &a , &b ) ;
      |        ^
a.cc:5:10: error: 'd' was not declared in this scope
    5 | scanf (”%d%d%d ” , &x , &a , &b ) ;
      |          ^
a.cc:6:5: error: '\U00002212a' was not declared in this scope
    6 | if (−a + b <= 0 ) printf ( ”delicious\n ” ) ;
      |     ^~
a.cc:6:28: error: '\U0000201ddelicious' was not declared in this scope
    6 | if (−a + b <= 0 ) printf ( ”delicious\n ” ) ;
      |                            ^~~~~~~~~~
a.cc:7:33: error: '\U0000201dsafe' was not declared in this scope
    7 | else if (−a + b <= x ) printf ( ”safe\n ” ) ;
      |                                 ^~~~~
a.cc:8:15: error: '\U0000201ddangerous' was not declared in this scope
    8 | else printf ( ”dangerous\n ” ) ;
      |               ^~~~~~~~~~
Language: C++


#define REP(i ,n) for(int i=0 ;i < n; i++)
#define REPB(i ,n) for(int i=n; i >= 0; i--)
#define FOR(i ,m ,n) for(int i=m; i < n; i++)
#define FORB(i, m, n) for(int i=m; i>= n; i--)
#define ll long long
#define pb push_back
#define popb pop_back
#define debug(i) cout << i << endl
using namespace std;
int main(){
  int x, a, b;
  cin >> x >> a >> b;

  string ans = "dengerous";

  if(b <= a) ans = "delicious";
  else if(b <= (a + x)) ans = "safe";

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope
   13 |   cin >> x >> a >> b;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:15:3: error: 'string' was not declared in this scope
   15 |   string ans = "dengerous";
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:17:14: error: 'ans' was not declared in this scope
   17 |   if(b <= a) ans = "delicious";
      |              ^~~
a.cc:18:25: error: 'ans' was not declared in this scope
   18 |   else if(b <= (a + x)) ans = "safe";
      |                         ^~~
a.cc:20:3: error: 'cout' was not declared in this scope
   20 |   cout << ans << endl;
      |   ^~~~
a.cc:20:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:11: error: 'ans' was not declared in this scope
   20 |   cout << ans << endl;
      |           ^~~
a.cc:20:18: error: 'endl' was not declared in this scope
   20 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(void){
    int X,A,B;
    cin>>X>>A>>B;

    if(X<=A)
        cout<<"delicious"<<endl;
    else if(X>A&&XX<=B-A)
        cout<<"safe"<<endl;
    else
        cout<<"dangerous"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'XX' was not declared in this scope; did you mean 'X'?
   10 |     else if(X>A&&XX<=B-A)
      |                  ^~
      |                  X
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  int X, A, B;
  cin >> X >> A >> B;
  if( B > A && B =< ( X + A ) )
    cout << "safe" << endl;
  else if ( B =< A )
    cout << "delicious" << endl;
  else if ( B > ( A + X ) )
    cout << "dangerous" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected primary-expression before '<' token
    8 |   if( B > A && B =< ( X + A ) )
      |                   ^
a.cc:10:16: error: expected primary-expression before '<' token
   10 |   else if ( B =< A )
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(){
	int x, a, b;
	cin >> x >> a >> b;
	if (a > b)
	{
		cout << "delicious" << endl;
	}else if (a < b %% a + x > b)
	{
		cout << "safe" << endl;
	}else{
		cout << "dangerous" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected primary-expression before '%' token
   10 |         }else if (a < b %% a + x > b)
      |                          ^
Language: Java

import java.io.PrintWriter;
import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		//String S = sc.next();
		//int N = Integer.parseInt(sc.next());
		//out.println();
		// ArrayList<String> list = new ArrayList<String>();
		// list.stream().sorted().distinct();
		int N = Integer.parseInt(sc.next());
		int A = Integer.parseInt(sc.next());
		int B = Integer.parseInt(sc.next());
		if(A>B){
			out.println("delicious");
		}else if(X>(B-A)){
			out.println("safe");
		}else if(X < (B-A)){
			out.println("dangerous");
		}
		out.flush();	
	}
}

Compiler output:
Main.java:17: error: cannot find symbol
		}else if(X>(B-A)){
		         ^
  symbol:   variable X
  location: class Main
Main.java:19: error: cannot find symbol
		}else if(X < (B-A)){
		         ^
  symbol:   variable X
  location: class Main
2 errors
Language: C

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

int main(int argc, char const *argv[])
{
	int x,a,b;
	scanf("%d%d%d",&x,&a,&b);
	if(−a + b <= 0)	printf("delicious\n");
	else if(−a + b <= x)	printf("safe\n");
	else printf("dangerous\n");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:12: error: stray '\342' in program
   11 |         if(<U+2212>a + b <= 0)  printf("delicious\n");
      |            ^~~~~~~~
main.c:12:17: error: stray '\342' in program
   12 |         else if(<U+2212>a + b <= x)     printf("safe\n");
      |                 ^~~~~~~~
Language: C++

#include <iostream>

int main () {
  int X;
  int A;
  int B;

  std::cin >> X >> A >> B;

  if (A=<B) {
    std::cout << "delicious" << std::endl;
  }else if ((B-A)=<X) {
    std::cout << "safe" << std::endl;
  }else{
    std::cout << "dangerous" << std::endl;
  }

  return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected primary-expression before '<' token
   10 |   if (A=<B) {
      |         ^
a.cc:12:19: error: expected primary-expression before '<' token
   12 |   }else if ((B-A)=<X) {
      |                   ^
Language: C++

#include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main(void)
{
	int x, a, b;
	cin >> x >> a >> b;
	if (x > b-a ||x==a&&x==b )
	{
		if (a - b > 0||)
		{
			cout << "delicious";
			return 0;
		}
		cout << "safe";
	}
	else if (x<b-a)
	{
		cout << "dangerous";
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: expected primary-expression before ')' token
   12 |                 if (a - b > 0||)
      |                                ^
Language: C

#include <stdio.h>

int main(void){
  int X,A,B;
  scanf("%d%d%d",&X,%A,&B);

  if(B <= A) 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:5:21: error: expected expression before '%' token
    5 |   scanf("%d%d%d",&X,%A,&B);
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
	long long X,A,B;
	cin >> X >> A >> B;
	if(A => B){
		cout << "delicious" << endl;
	}else if(B <= A + X){
		cout << "safe" << endl;
	}else{
		cout << "dangerous" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '>' token
    6 |         if(A => B){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected primary-expression before '=' token
   11 |         if(a > =b) {
      |                ^
Language: Java

import java.util.*;
 
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();
       
        int tabe = b-a;
      
      if(a>b){
        System.out.print("delicious");
      }if(tabe>x){
        System.out.print("dangerous");
      }if(a<b&&tabe<=X){
         System.out.print("safe");
      }
      
 
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
      }if(a<b&&tabe<=X){
                     ^
  symbol:   variable X
  location: class Main
1 error
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'x'
    7 |   cin x >> a >> b;
      |      ^~
      |      ;
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:6: error: 'b' undeclared (first use in this function)
    5 |   if(b<=a){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: 'a' undeclared (first use in this function)
    5 |   if(b<=a){
      |         ^
main.c:7:17: error: 'x' undeclared (first use in this function)
    7 |   }else if(b<=a+x){
      |                 ^
Language: C

#include<stdio.h>

int main(void){
  int X,A,B;
  if(scanf("%d %d %d",&X,&A,&B));
  if(X>=1 && X<= 10**9 && A>=1 && A<=10**9 && B>=1 && B<=10**9){
    if(A>B)
      printf("delicious");
    else if(X<=(A-B))
      printf("safe");
    else
      printf("dangerous");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: invalid type argument of unary '*' (have 'int')
    6 |   if(X>=1 && X<= 10**9 && A>=1 && A<=10**9 && B>=1 && B<=10**9){
      |                     ^~
main.c:6:41: error: invalid type argument of unary '*' (have 'int')
    6 |   if(X>=1 && X<= 10**9 && A>=1 && A<=10**9 && B>=1 && B<=10**9){
      |                                         ^~
main.c:6:61: error: invalid type argument of unary '*' (have 'int')
    6 |   if(X>=1 && X<= 10**9 && A>=1 && A<=10**9 && B>=1 && B<=10**9){
      |                                                             ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x,a,b;
  cin>>x>>a>>b;
  if(a>=b) coum<<"delicious";
  else{
    if(b-a<=x) cout<<"safe";
    else cout<<"dangerous";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'coum' was not declared in this scope
    6 |   if(a>=b) coum<<"delicious";
      |            ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:35: error: expected ';' before '}' token
    9 |   else cout << "dangerous" << endl
      |                                   ^
      |                                   ;
   10 | }
      | ~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'y' was not declared in this scope
    6 |   cin >> x >> a >> y;
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
int A,B,C;
  cin >> A >> B >> C;
  if (A-C<0){
    cout << "delicious" << endl;
  } else if (A+B-C<0){
    cout << "safe" <, endl;
  } else {
    cout << "dangerous" << endl;
    
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected primary-expression before ',' token
   10 |     cout << "safe" <, endl;
      |                     ^
Language: Java

#include <bits/stdc++.h>
using namespace std;
int main(){
    int x, a, b;
    cin >> x >> a >> b;
    string ans;
    if(b - a > x) ans = "dangerous";
    else if(b - a <= x && b-a > 0) ans = "safe";
    else ans = "delicious";
    cout << ans;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:5: error: not a statement
    cin >> x >> a >> b;
                  ^
Main.java:10: error: not a statement
    cout << ans;
         ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
int x, a, b;
int main(){
    cin >> x >> a >> b;
    if(b > x) cout << "dangerous" << endl;;
    else if(b < a) cout << "safe" << endl;
    else cout << "delicious" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'else' without a previous 'if'
   10 |     else if(b < a) cout << "safe" << endl;
      |     ^~~~
Language: C++

#include<bits/tdc++.h>
using namespace std;
int main() {
	int x, a, b;
	cin >> x >> a >> b;
	int c = b - a;
	if (c <= 0) {
		cout << "delicious" << endl;
	}
	else if (c <= x) {
		cout << "asfe" << endl;
	}
	else {
		cout << "dangerous" << endl;
	}
}

Compiler output:
a.cc:1:9: fatal error: bits/tdc++.h: No such file or directory
    1 | #include<bits/tdc++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '<' token
    9 |   else cout <<< "dangerous" << endl;
      |               ^
a.cc:9:29: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   else cout <<< "dangerous" << endl;
      |                 ~~~~~~~~~~~~^~~~~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: expected ';' before 'puts'
    7 | else (x+a-b>=0)puts("safe");
      |                ^~~~
      |                ;
main.c:8:1: error: 'else' without a previous 'if'
    8 | else puts("dangerous");
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int X,A,B;
  cin >> X >> A >> B;
  if(B<=A) {
    cout << "dilicious" << endl;
  } else {
    if(X<=B-A){
      cout << "dangerous" << endl;
    } else {
      cout << "safe" << emdl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'emdl' was not declared in this scope
   13 |       cout << "safe" << emdl;
      |                         ^~~~
Language: C++

#inculude<bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude<bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:15: error: 'cin' was not declared in this scope
    5 |     int x,a,b;cin >> x >> a >> b;
      |               ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inculude<bits/stdc++.h>
a.cc:6:15: error: 'cout' was not declared in this scope
    6 |     if(a-b<0) cout << "delicious" << endl;
      |               ^~~~
a.cc:6:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:38: error: 'endl' was not declared in this scope
    6 |     if(a-b<0) cout << "delicious" << endl;
      |                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculude<bits/stdc++.h>
a.cc:7:21: error: 'cout' was not declared in this scope
    7 |     else if(b-a<=x) cout << "safe" <<endl;
      |                     ^~~~
a.cc:7:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:38: error: 'endl' was not declared in this scope
    7 |     else if(b-a<=x) cout << "safe" <<endl;
      |                                      ^~~~
a.cc:7:38: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:8:10: error: 'cout' was not declared in this scope
    8 |     else cout << "dengerous" << endl;
      |          ^~~~
a.cc:8:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:33: error: 'endl' was not declared in this scope
    8 |     else cout << "dengerous" << endl;
      |                                 ^~~~
a.cc:8:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#incldue<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,x;cin>>x>>a>>b;
  string s;
  if(a>=b) s="delicious";
  if(b>a && b<=x+a) s="safe";
  if(b>x+a) s="dangerous";
  cout<<s<<endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope
    4 |   int a,b,x;cin>>x>>a>>b;
      |             ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue<bits/stdc++.h>
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #incldue<bits/stdc++.h>
a.cc:6:12: error: 's' was not declared in this scope
    6 |   if(a>=b) s="delicious";
      |            ^
a.cc:7:21: error: 's' was not declared in this scope
    7 |   if(b>a && b<=x+a) s="safe";
      |                     ^
a.cc:8:13: error: 's' was not declared in this scope
    8 |   if(b>x+a) s="dangerous";
      |             ^
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<s<<endl;
      |   ^~~~
a.cc:9:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:9: error: 's' was not declared in this scope
    9 |   cout<<s<<endl;
      |         ^
a.cc:9:12: error: 'endl' was not declared in this scope
    9 |   cout<<s<<endl;
      |            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue<bits/stdc++.h>
Language: C++

#include <iostream>
using namspace std;

int main(void){
    int X, A, B;

    // implements
    if(B <= A){
        printf("delicious\n");
    }
    else if(B > (A+X)){
        printf("dangerous\n");
    }
    else{
        printf("safe\n");
    }

    return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namspace'
    2 | using namspace std;
      |       ^~~~~~~~
Language: Java

import java.util.Scanner;
import java.util.Vector;

class Main{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int n=sc.nextInt();
		Vector<Integer> v=new Vector<Integer>();

		for(int i=0; i<n; i++) {
			int z=sc.nextInt();
			z--;
			v.add(z);
		}
		int now=0; int c=0;
		for(;;) {
			if(now==1) {
				System.out.println(c);
			}
			if(c>=n) {
				System.out.println(-1);
			}
			c++;
			now=v[now];
		}
	}
}

Compiler output:
Main.java:24: error: array required, but Vector<Integer> found
			now=v[now];
			     ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int x,a,b;
  cin>>x>>a>>b;
	if(a>=b) cout<<"delicious"<<endl;
  else if (b-a=<x) cout<<"safe"<<endl;
  else cout<<"dangerous"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: expected primary-expression before '<' token
    7 |   else if (b-a=<x) cout<<"safe"<<endl;
      |                ^
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(X >= B-A){
        cout << "safe" << endl;
    }else{
        cout << "dangerous" << endl;
    }

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

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int x,a,b;
    cin>>x>>a>>b;
    if(b-a <= 0) cout<<"delicious"<<endl;
    else if(b-a >= x) cout<<"safe"<<endl;
    else cout<<"dangerous"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before '}' token
   10 |     else cout<<"dangerous"
      |                           ^
      |                           ;
   11 | }
      | ~
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for(int i=0;i<(n);i++)
const int MOD=(int)1e9+7;
using namespace std;
int main(){
    int x,a,b;
    cin>>x>>a>>b;
    if(b-a <= 0)cout<<"delicious"<<endl;
    else if(b-a >= x)cout<<"safe"<<endl;
    else cout<<"dangerous"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before '}' token
   10 |     else cout<<"dangerous"
      |                           ^
      |                           ;
   11 | }
      | ~
Language: C++

#include<stdio.h>
int main ( )
{
int 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 ( ”delicious\n ” ) ;
e l s e i f (−a + b <= x ) p r i n t f ( ”safe\n ” ) ;
e l s e p r i n t f ( ”dangerous\n ” ) ;
return 0;
}



Compiler output:
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 ( ”delicious\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 ( ”delicious\n ” ) ;
      |                                  ^
a.cc:6:44: error: stray '\' in program
    6 | i f (−a + b <= 0 ) p r i n t f ( ”delicious\n ” ) ;
      |                                            ^
a.cc:6:47: error: extended character ” is not valid in an identifier
    6 | i f (−a + b <= 0 ) p r i n t f ( ”delicious\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 ( ”safe\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 ( ”safe\n ” ) ;
      |                                          ^
a.cc:7:47: error: stray '\' in program
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ”safe\n ” ) ;
      |                                               ^
a.cc:7:50: 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 ( ”safe\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 ( ”dangerous\n ” ) ;
      |                       ^
a.cc:8:33: error: stray '\' in program
    8 | e l s e p r i n t f ( ”dangerous\n ” ) ;
      |                                 ^
a.cc:8:36: error: extended character ” is not valid in an identifier
    8 | e l s e p r i n t f ( ”dangerous\n ” ) ;
      |                                    ^
a.cc: In function 'int main()':
a.cc:5:1: error: 's' was not declared in this scope
    5 | s c a n f (”%d%d%d ” , &x , &a , &b ) ;
      | ^
a.cc:6:1: error: 'i' was not declared in this scope
    6 | i f (−a + b <= 0 ) p r i n t f ( ”delicious\n ” ) ;
      | ^
a.cc:7:1: error: 'e' was not declared in this scope
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ”safe\n ” ) ;
      | ^
a.cc:8:2: error: expected ';' before 'l'
    8 | e l s e p r i n t f ( ”dangerous\n ” ) ;
      |  ^~
      |  ;
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 ( ”delicious\n ” ) ;
e l s e i f (−a + b <= x ) p r i n t f ( ”safe\n ” ) ;
e l s e p r i n t f ( ”dangerous\n ” ) ;
return 0;
}



Compiler output:
a.cc: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
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 ( ”delicious\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 ( ”delicious\n ” ) ;
      |                                  ^
a.cc:6:44: error: stray '\' in program
    6 | i f (−a + b <= 0 ) p r i n t f ( ”delicious\n ” ) ;
      |                                            ^
a.cc:6:47: error: extended character ” is not valid in an identifier
    6 | i f (−a + b <= 0 ) p r i n t f ( ”delicious\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 ( ”safe\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 ( ”safe\n ” ) ;
      |                                          ^
a.cc:7:47: error: stray '\' in program
    7 | e l s e i f (−a + b <= x ) p r i n t f ( ”safe\n ” ) ;
      |                                               ^
a.cc:7:50: 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 ( ”safe\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 ( ”dangerous\n ” ) ;
      |                       ^
a.cc:8:33: error: stray '\' in program
    8 | e l s e p r i n t f ( ”dangerous\n ” ) ;
      |                                 ^
a.cc:8:36: error: extended character ” is not valid in an identifier
    8 | e l s e p r i n t f ( ”dangerous\n ” ) ;
      |                                    ^
a.cc:2:1: error: 'i' does not name a type
    2 | i n t main ( )
      | ^
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:
a.cc: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
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>
#include<algorithm>
#include<string>
#include<map>
#include<set>
#include<vector>
#include<string.h>
#include<math.h>
#include<stdio.h>
#include<queue>
#include<utility>
#include<cstdio>
#include<cstring>
#include<new>
#include<new.h>
#include<float.h>
#include<ctype.h>
#include<cfloat>
#include<cmath>
#include<cctype>
#include<errno.h>
#include<cerrno>
#include<memory>
#include<memory.h>
#include<assert.h>
#include<cassert>
#include<deque>
#include<sstream>
#define fo(i,w,n) for(int i=(int) w;i<(int) n;i++)
#define qui queue<int>
#define vit vector<int>
#define ll long long
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define prq priority_queue
#define pii pair<int,int>
#define mp make_pair
#define sz size()
#define em empty()
#define ct continue
#define ms multiset
#define all(a) (a).begin(),(a).end()
#define pf push_front
#define ppf pop_front()
using namespace std;
int main()
{
	int a,b,c;cin>>a>>b>>c;
	if(b+c<a)cout<<"dangerous";
	else if(b+c==a)cout<<"delicious";
	else cout<<"safe";
	return 0;
}

Compiler output:
a.cc:15:9: fatal error: new.h: No such file or directory
   15 | #include<new.h>
      |         ^~~~~~~
compilation terminated.
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(a<b&&x>=b-a{cout<<"safe"<<endl;}
  else{cout<<"dangerous"<<endl;}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before '{' token
    7 |   else if(a<b&&x>=b-a{cout<<"safe"<<endl;}
      |                      ^
      |                      ;
a.cc:8:3: error: expected primary-expression before 'else'
    8 |   else{cout<<"dangerous"<<endl;}
      |   ^~~~
a.cc:7:43: error: expected ')' before 'else'
    7 |   else if(a<b&&x>=b-a{cout<<"safe"<<endl;}
      |          ~                                ^
      |                                           )
    8 |   else{cout<<"dangerous"<<endl;}
      |   ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int x,a,b;
    cin >> x >> a >> b;
    if(a>=b){
    cout << "delicious" << endl;
}
    else if(a<b && b-a<=x){
    cout << "safe" << endl;
}
    else if(a<b && b-a>x){
    cout << "dangerous" << endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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+b >= c){
			cout << "safe"
		}
		else{
			cout << "dangerous" << endl;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:39: error: expected ';' before '}' token
   11 |                         cout << "safe"
      |                                       ^
      |                                       ;
   12 |                 }
      |                 ~
Language: C

#include <stdio.h>
int main(){
	int a,b,x,y;
	scanf("%d %d %d",&x,&a,&b);
	y=a+x;
	if (a=>b)
	{
		printf("delicious\n");
	}else if (a<b)
	{
		if (y>=b)
		{
			printf("safe\n");
		}else if (y<b)
		{
			printf("dengerous\n");
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '>' token
    6 |         if (a=>b)
      |               ^
Language: C++

#include <bits/stdc++.h>
#include <typeinfo>
#include <cxxabi.h>
#ifdef LOCAL
  #include "dbgtoki.hpp"
  #define DUMP(i) dump((string)TOSTRING(i), demangle(typeid(i).name()), __LINE__ , i) 
DbgTimer D_t;
  #define TSTART() D_t.start()
  #define TSTOP() D_t.stop()
#else
  #define DUMP(i) 
  #define TSTART()
  #define TSTOP()  
#endif
 
#define TOSTRING(x) #x
#define SZ(x) (int)(x).size()
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define ALL(s) (s).begin(), (s).end()
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()) , v.end());
using namespace std;
typedef long long unsigned int llu;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;

const int EPS = 1e-9;

int main (){
  cin.tie(0);
  ios::sync_with_stdio(false);
  int r,g,b;
  while(cin >> r >> g >> b){
    TSTART();
    string ans;
    if(a >= b)ans = "delicious";
    else if(a+x < b)ans = "dangerous";
    else ans = "safe";
    cout << ans << endl;
    TSTOP();
  }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:37:8: error: 'a' was not declared in this scope
   37 |     if(a >= b)ans = "delicious";
      |        ^
a.cc:38:15: error: 'x' was not declared in this scope
   38 |     else if(a+x < b)ans = "dangerous";
      |               ^
Language: C++

#include <sstream>
#include <iostream>
using namespace std;

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

Compiler output:
a.cc:9:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
    9 |     cout << 'delicious' << endl;
      |             ^~~~~~~~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 'safe' << endl;
      |             ^~~~~~
a.cc:13:13: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
   13 |     cout << 'dangerous' << endl;
      |             ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before ']' token
   16 |   ]
      |   ^
a.cc:16:4: error: expected '}' at end of input
   16 |   ]
      |    ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>

using namespace std;

int main(){
    int X, A, B;

    cin >> X >> A >> B;

    if(B-A>X){
        cout << "dangerous";
    }else if(B-A>0){
        cout << "safe";
    }else{
        cout << "delicious";
    }
}

~
~

Compiler output:
a.cc:20:1: error: expected class-name before '~' token
   20 | ~
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include <queue>
#include <set>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)

using namespace std;
typedef long long int lli;

int main(){
	int X,A,B;
	cin>>X>>A>>B;
	if(B-A<=0)cout<<"delicious";
	else(B-A<=X)cout<<"safe";
	else cout<<"dangerous";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: expected ';' before 'cout'
   18 |         else(B-A<=X)cout<<"safe";
      |                     ^~~~
      |                     ;
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else cout<<"dangerous";
      |         ^~~~
Language: C++

#include <stdio.h>
int main()
{
  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:14:26: error: expected ';' before ':' token
   14 |     printf("dangerous\n"):
      |                          ^
      |                          ;
Language: C++

#include <bits/stdc++.h>
using namespace std;

//#define int long long
struct Fast {Fast(){std::cin.tie(0);ios::sync_with_stdio(false);}} fast;

/* cpp template {{{ */

/* short */
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fi first
#define Se second
#define ALL(v) (v).begin(), (v).end()
#define RALL(v) (v).rbegin(), (v).rend()
#define X real()
#define Y imag()

/* REPmacro */
#define REPS(i, a, n) for (ll i = (a); i < (ll)(n); ++i)
#define rep(i, n) REPS(i, 0, n)
#define REP0(i,n) for (ll i = 0; i <= (ll)(n); ++i)
#define REP1(i,n) for (ll i = 1; i <= (ll)(n); ++i)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (ll i = (a); i >= (ll)(n); --i)
#define DEP(i, n) DEPS(i, n, 0)
#define EACH(i, n) for (auto&& i : n)

/* debug */
#define debug(x) cerr << x << " " << "(L:" << __LINE__ << ")" << '\n';

/* alias */
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using D = double;
using P = complex<D>;
using vs = vector<string>;
template <typename T> using PQ = priority_queue<T>;
template <typename T> using minPQ = priority_queue<T, vector<T>, greater<T>>;

/* const */
const int INF = 1001001001;
const ll LINF = 1001001001001001001ll;
const int MOD = 1e9 + 7;
const D EPS = 1e-9;
const int dx[] = {0, 1, 0, -1, 1, -1, 1, -1}, dy[] = {1, 0, -1, 0, 1, -1, -1, 1};

/* func */
inline bool inside(int y, int x, int H, int W) {return y >= 0 && x >= 0 && y < H && x < W;}
inline int in() {int x; cin >> x; return x;}
inline ll IN() {ll x; cin >> x; return x;}
inline vs split(const string& t, char c) {vs v; stringstream s(t); string b; while(getline(s, b, c)) v.eb(b); return v;}
template <typename T> inline bool chmin(T& a, const T& b) {if (a > b) a = b; return a > b;}
template <typename T> inline bool chmax(T& a, const T& b) {if (a < b) a = b; return a < b;}
template <typename T, typename S> inline void print(const pair<T, S>& p) {cout << p.first << " " << p.second << endl;}
template <typename T> inline void print(const T& x) {cout << x << '\n';}
template <typename T, typename S> inline void print(const vector<pair<T, S>>& v) {for (auto&& p : v) print(p);}
template <typename T> inline void print(const vector<T>& v, string s = " ") {rep(i, v.size()) cout << v[i] << (i != (ll)v.size() - 1 ? s : "\n");}
template<typename T>
istream& operator >> (istream& is, vector<T>& vec){
  for(T& x: vec) is >> x;
  //for(int i=0; i<vec.size(); i++) is >> x[i]; とかでもいいです。
  return is;
}
template<typename T>
ostream& operator << (ostream& os, vector<T>& vec){
  for(int i=0; i<vec.size(); i++){
    os << vec[i] << ( i+1 == vec.size() ? "" : " " );
  }
  return os;
}
/* }}} */

signed main() 
{
  int x,a,b;
  cin >> x >> a >> b;
  if(b-a<0) print("delicious");
  else (b-a<x) print("safe");
  else print("dangerous");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:84:15: error: expected ';' before 'print'
   84 |   else (b-a<x) print("safe");
      |               ^~~~~~
      |               ;
a.cc:85:3: error: 'else' without a previous 'if'
   85 |   else print("dangerous");
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
	int X, A, B;
	cin >> X >> A >> B;
	if(A>=B) cout << "delicious" << endl;
	if(B>A&&(A+X<=B) cout << "safe" << endl;
	else cout << "dangerous" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before 'cout'
    8 |         if(B>A&&(A+X<=B) cout << "safe" << endl;
      |                         ^~~~~
      |                         ;
a.cc:9:9: error: expected primary-expression before 'else'
    9 |         else cout << "dangerous" <<endl;
      |         ^~~~
a.cc:8:49: error: expected ')' before 'else'
    8 |         if(B>A&&(A+X<=B) cout << "safe" << endl;
      |           ~                                     ^
      |                                                 )
    9 |         else cout << "dangerous" <<endl;
      |         ~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
  int x, a, b;
  cin >> x >> a >> b;
  string ans = "dangerous";

  if(b<=a) ans = "delicious";
  else if(a<b && b<=a+x) ans = "safe";

  cout << ans << endl;

  return 0;g
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'g' was not declared in this scope
   15 |   return 0;g
      |            ^
Language: C

#include <stdio.h>
int abs(int n){
		if(n<0){
		return -1*n;}else
		return n;}
int main(void)
{int N,A,M,B,X,C,x,i,a,b,c,l,r,g,b,m,tmp;
	scanf("%d%d%d",&X,&A,&B);
if(B<=A){
	printf("delicious");}
	else if(B<=A+X){
		printf("safe");}
		else{
			printf("dangerous");}


	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:34: error: redeclaration of 'b' with no linkage
    7 | {int N,A,M,B,X,C,x,i,a,b,c,l,r,g,b,m,tmp;
      |                                  ^
main.c:7:24: note: previous declaration of 'b' with type 'int'
    7 | {int N,A,M,B,X,C,x,i,a,b,c,l,r,g,b,m,tmp;
      |                        ^
Language: C

#include <stdio.h>

int main(void){
  int x,a,b;
  scanf("%d %d %d"&x,a,b);
  if (b-a<=0){
    printf("delicious\n");
  }
  else if (b-a<x+1){
    printf("safe\n");
  }
  else{
    printf("dangerous\n");
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:19: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d %d"&x,a,b);
      |         ~~~~~~~~~~^
      |         |
      |         char *
Language: C

#include <stdio.h>

int main(void){
  int x,a,b;
  scanf("%d %d %d"&x,a,b);
  if (b-a<=0){
    printf("delicious\n");
  else if (b-a<x+1){
    printf("safe\n");
  }
  else{
    printf("dangerous\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:19: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d %d"&x,a,b);
      |         ~~~~~~~~~~^
      |         |
      |         char *
main.c:8:3: error: expected '}' before 'else'
    8 |   else if (b-a<x+1){
      |   ^~~~
Language: Java

import java.util.Scanner;
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();
    if(b <= a){
      System.out.println("delisious");
    }else if(b-a <= 0 && b-a <= x){
      System.out.println("safe");
    }else if(b-a <= 0 && b-a >= x){
      System.out.println("dangerous");
    }
  }

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

#include <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '=' token
    7 | if(b - a < = x){
      |            ^
Language: Java

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();
        if (b <= a) {
            System.out.println("delicious");
            return;
        }
        if (b-a <= x) {
            System.out.println("safe");
        } else {
            System.out.println("dangerous");
        }
    }
}


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

#include<bits/stdc++.h>
#define rep(i,a,n) for (int i = a;i < n;i++)
using namespace std;

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

Compiler output:
a.cc:6:17: error: extended character 　 is not valid in an identifier
    6 |     int x, a, b;　cin >> x >> a >> b;
      |                 ^
a.cc: In function 'int main()':
a.cc:6:17: error: '\U00003000cin' was not declared in this scope
    6 |     int x, a, b;　cin >> x >> a >> b;
      |                 ^~~~~