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

#include<bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, a, b) for (int i= (a); i < (b); ++i)
typedef long long ll;
typedef pair<int,int> P;
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
const double EPS = 1e-9;
int main() { int X, A, B;
  cin >> X >> A >> B;
    if(A-B>=0){
      puts("delicious");
    }else if(A-B+X=>0){
      puts("safe");
    }else{
      puts("dangerous");
    }
  }


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


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

import java.util.*;

public class Expired {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int x = sc.nextInt();
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		sc.close();
		
		if(b<=a) {
			System.out.println("delicious");
		}else if(b<=a+x) {
			System.out.println("safe");
		}else {
			System.out.println("dangerous");
		}
	}

}


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

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

int main() {
  

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

int main() {
  

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


Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
Language: C++

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

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

#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <map>
 
using ll = long long;
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;
    }
 
    return 0;
}

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

#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <vector>
#include <string>
#include <queue>
#include <map>
 
using ll = long long;
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:19:20: error: expected primary-expression before '<' token
   19 |     } else if(B-A =< X){
      |                    ^
Language: C++

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

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

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

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

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


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

//#include <tourist>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = 1e9;
const ll LINF = ll(1e18);
const int MOD = 1000000007;
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define rep(i, n) for (int i = 0; i < n; i++)
#define ALL(v) v.begin(), v.end()
#define debug(v)          \
    cout << #v << ":";    \
    for (auto x : v)      \
    {                     \
        cout << x << ' '; \
    }                     \
    cout << endl;
template <class T>
bool chmax(T &a, const T &b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
bool chmin(T &a, const T &b)
{
    if (b < a)
    {
        a = b;
        return 1;
    }
    return 0;
}
//cout<<fixed<<setprecision(15);有効数字15桁
//-std=c++14
//-std=gnu++17
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
ll lcm(ll a, ll b) { return a / gcd(a, b) * b; }
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    ll x,a,b;
    cin>>x>>a>>b;
    b-=a;
    if(b=<0)cout<<"delicious"<<"\n";
    else if(x>=b)cout<<"safe"<<"\n";
    else cout<<"dangerous"<<"\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:10: error: expected primary-expression before '<' token
   56 |     if(b=<0)cout<<"delicious"<<"\n";
      |          ^
Language: C++

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

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

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

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

int main() {
  ll 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:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <numeric>
#include <iomanip>
#include <map>
#include <set>
#include <deque>
#include <utility>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define repk(i, k, n) for (int i = k; i < n; i++)
#define MOD 1e9 + 7
#define INF 1e9
#define SENTINEL 2e9
#define PIE 3.14159265358979323

template <class T>
inline bool chmin(T &a, T b){if (a > b){a = b;return true;}return false;}
template <class T>
inline bool chmax(T &a, T b){if (a < b){a = b;return true;}return false;}
template <class T>
inline T GCD(T a, T b){if (b == 0) return a; else return GCD(b, a % b);}
template <class T>
inline T LCM(T a, T b) {return (a * b) / GCD(a, b);}

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 << "dangerous" << endl;
    else
        cout << "safe" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:12: error: expected primary-expression before '<' token
   36 |     if (c =< 0)
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'lf' was not declared in this scope
   10 |   else lf(B>A &&B-A<=X){
      |        ^~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else {
      |   ^~~~
Language: C++

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

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

  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'x'
    5 |   cin x,a,b;
      |      ^~
      |      ;
a.cc:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x >> a >> b;
      |          ^
a.cc:6:15: error: 'a' was not declared in this scope
    6 |   cin >> x >> a >> b;
      |               ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |   cin >> x >> a >> b;
      |                    ^
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:12:26: error: expected ';' before 'return'
   12 |     printf("dangerous\n")
      |                          ^
      |                          ;
   13 |   return 0;
      |   ~~~~~~
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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: invalid operands of types 'const char [10]' and '<unresolved overloaded function type>' to binary 'operator<<'
   14 |     cout < "dangerous" << endl;
      |            ~~~~~~~~~~~~^~~~~~~
Language: C++

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

int main( void )
{
    ll 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;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected primary-expression before '<' token
   11 |     if ( -a + b =< 0 )
      |                  ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ')' before 'x'
   10 |     if((b-a)x) cout << "safe" << endl;
      |       ~     ^
      |             )
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:4:9: error: extended character ” is not valid in an identifier
    4 |   scanf(”%d%d%d” , &x , &a , &b);
      |         ^
a.cc:4:15: error: extended character ” is not valid in an identifier
    4 |   scanf(”%d%d%d” , &x , &a , &b);
      |               ^
a.cc:5:7: error: extended character − is not valid in an identifier
    5 |   if (−a + b <= 0) printf (”delicious\n”);
      |       ^
a.cc:5:28: error: extended character ” is not valid in an identifier
    5 |   if (−a + b <= 0) printf (”delicious\n”);
      |                            ^
a.cc:5:38: error: stray '\' in program
    5 |   if (−a + b <= 0) printf (”delicious\n”);
      |                                      ^
a.cc:5:39: error: extended character ” is not valid in an identifier
    5 |   if (−a + b <= 0) printf (”delicious\n”);
      |                                       ^
a.cc:6:12: error: extended character − is not valid in an identifier
    6 |   else if (−a + b <= x) printf (”safe\n”);
      |            ^
a.cc:6:33: error: extended character ” is not valid in an identifier
    6 |   else if (−a + b <= x) printf (”safe\n”);
      |                                 ^
a.cc:6:38: error: stray '\' in program
    6 |   else if (−a + b <= x) printf (”safe\n”);
      |                                      ^
a.cc:6:39: error: extended character ” is not valid in an identifier
    6 |   else if (−a + b <= x) printf (”safe\n”);
      |                                       ^
a.cc:7:16: error: extended character ” is not valid in an identifier
    7 |   else printf (”dangerous\n”);
      |                ^
a.cc:7:26: error: stray '\' in program
    7 |   else printf (”dangerous\n”);
      |                          ^
a.cc:7:27: error: extended character ” is not valid in an identifier
    7 |   else printf (”dangerous\n”);
      |                           ^
a.cc: In function 'int main()':
a.cc:4:9: error: '\U0000201d' was not declared in this scope
    4 |   scanf(”%d%d%d” , &x , &a , &b);
      |         ^
a.cc:4:11: error: 'd' was not declared in this scope
    4 |   scanf(”%d%d%d” , &x , &a , &b);
      |           ^
a.cc:4:15: error: 'd\U0000201d' was not declared in this scope
    4 |   scanf(”%d%d%d” , &x , &a , &b);
      |               ^~
a.cc:5:7: error: '\U00002212a' was not declared in this scope
    5 |   if (−a + b <= 0) printf (”delicious\n”);
      |       ^~
a.cc:5:28: error: '\U0000201ddelicious' was not declared in this scope
    5 |   if (−a + b <= 0) printf (”delicious\n”);
      |                            ^~~~~~~~~~
a.cc:6:33: error: '\U0000201dsafe' was not declared in this scope
    6 |   else if (−a + b <= x) printf (”safe\n”);
      |                                 ^~~~~
a.cc:7:16: error: '\U0000201ddangerous' was not declared in this scope
    7 |   else printf (”dangerous\n”);
      |                ^~~~~~~~~~
Language: C++

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

int main(){
  ll x,a,b;
  cin >> x >> a >> b;
  int c = b-a;
  if(c <= 0){
    puts("delicious");
  else if(x >= c){
    puts("safe");
  }
  else{
    puts("dangerous");
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected '}' before 'else'
   13 |   else if(x >= c){
      |   ^~~~
a.cc:11:13: note: to match this '{'
   11 |   if(c <= 0){
      |             ^
Language: C++

#include <iostream>

int main()
{
	int x, a, b;
	cout << x << a << b;
	if (−a + b <= 0 ) cout >> "d e l i c i o u s" >> endl;
	elseif (−a + b <= x ) cout >> "safe" >> endl;
	else cout >> "dangerous" >> endl;
}


Compiler output:
a.cc:7:13: error: extended character − is not valid in an identifier
    7 |         if (−a + b <= 0 ) cout >> "d e l i c i o u s" >> endl;
      |             ^
a.cc:8:17: error: extended character − is not valid in an identifier
    8 |         elseif (−a + b <= x ) cout >> "safe" >> endl;
      |                 ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << x << a << b;
      |         ^~~~
      |         std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:13: error: '\U00002212a' was not declared in this scope
    7 |         if (−a + b <= 0 ) cout >> "d e l i c i o u s" >> endl;
      |             ^~
a.cc:7:58: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         if (−a + b <= 0 ) cout >> "d e l i c i o u s" >> 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:8:17: error: '\U00002212a' was not declared in this scope
    8 |         elseif (−a + b <= x ) cout >> "safe" >> endl;
      |                 ^~
a.cc:8:9: error: 'elseif' was not declared in this scope
    8 |         elseif (−a + b <= x ) cout >> "safe" >> endl;
      |         ^~~~~~
a.cc:9:9: error: 'else' without a previous 'if'
    9 |         else cout >> "dangerous" >> endl;
      |         ^~~~
a.cc:9:37: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         else cout >> "dangerous" >> 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<bits/stdc++.h>

using namespace std;
using ll = long long int;
#define INF 20000000000000000;

int main(void){
  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;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: lvalue required as left operand of assignment
   12 |   else if(b - a = x) cout << "safe" << endl;
      |           ~~^~~
Language: C++

#include<iostream>

using namespace std;

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




Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected primary-expression before '<' token
   10 |   else if(b-a=<x){puts("safe");}
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: expected primary-expression before '<' token
    6 |   else if(c - b =< 0) cout << "delicious" << endl;
      |                  ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,c) for(int i=0;i<c;++i)
int main(){
int x,y,z;
cin >> x >> y >> z;
if(y+z>x&&z-y<=x){
    cout << "safe" << endl;
}else if(y+z<=x&&z-y<x){
    cout << "delicious" << endl;
}
if(y+z>x&&z-y>x)
    cout << "dangerous" << endl;
}
return 0;
}

Compiler output:
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define MOD 1000000007
#define INF 1e18
#define PI 3.14159265358979

using namespace std;

int main(void){
  ll 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;
  
  

  return 0;
}


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ';' before '{' token
   10 |     else(B-A <= X){
      |                   ^
      |                   ;
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else{
      |     ^~~~
Language: C++

#include<iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'k' was not declared in this scope
    8 |   else if(a - b <= k)
      |                    ^
Language: C++

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

Compiler output:
a.cc:8:12: error: extended character − is not valid in an identifier
    8 |         if(−a + b <= 0)
      |            ^
a.cc: In function 'int main()':
a.cc:8:12: error: '\U00002212a' was not declared in this scope
    8 |         if(−a + b <= 0)
      |            ^~
Language: C++

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

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


Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include <stdio.h>
#include <iostream>
#include <vector>
#include<algorithm>

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 << "dangerous" << endl;
}

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

#inlcude <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 > x)
    cout << "dangerous" << endl;
  else
  	cout << "safe" << endl;
  
  return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #inlcude <bits/stdc++.h>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "delicious" << endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:32: error: 'endl' was not declared in this scope
    9 |         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 | #inlcude <bits/stdc++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "dangerous" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:28: error: 'endl' was not declared in this scope
   11 |     cout << "dangerous" << endl;
      |                            ^~~~
a.cc:11:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "safe" << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:27: error: 'endl' was not declared in this scope
   13 |         cout << "safe" << endl;
      |                           ^~~~
a.cc:13:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inlcude <bit/std++.h>
using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <bit/std++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #inlcude <bit/std++.h>
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "delicious" << endl;
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:32: error: 'endl' was not declared in this scope
    9 |         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 | #inlcude <bit/std++.h>
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "dangerous" << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:28: error: 'endl' was not declared in this scope
   11 |     cout << "dangerous" << endl;
      |                            ^~~~
a.cc:11:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "safe" << endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:27: error: 'endl' was not declared in this scope
   13 |         cout << "safe" << endl;
      |                           ^~~~
a.cc:13:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inlcude <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)
    cout << "dangerous" << endl;
  else
  	cout << "safe" << endl;
  
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #inlcude <iostream>
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "delicious" << endl;
      |         ^~~~
a.cc:10:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:32: error: 'endl' was not declared in this scope
   10 |         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 | #inlcude <iostream>
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "dangerous" << endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:28: error: 'endl' was not declared in this scope
   12 |     cout << "dangerous" << endl;
      |                            ^~~~
a.cc:12:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "safe" << endl;
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |         cout << "safe" << endl;
      |                           ^~~~
a.cc:14:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

x,a,b=map(int,input().split())
if b<=a:
    print("delicious")
elif b<=a+x:
    print("safe")
else:
    print("dangerous")


Compiler output:
a.cc:1:1: error: 'x' does not name a type
    1 | x,a,b=map(int,input().split())
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:12:2: error: 'j' does not name a type
   12 | }j
      |  ^
Language: Java

import java.util.Scanner;

public class Problem14 {

    public static void main(String[] args) {

        int x, a, b;

        Scanner input = new Scanner(System.in);

        x = input.nextInt();
        a = input.nextInt();
        b = input.nextInt();

        int BestByDate = a + a;
        int EatingDate = a + b;

        int Date = EatingDate - BestByDate;
                
           if(EatingDate <= BestByDate){
               
               System.out.println("delicios");
           }
           else if(EatingDate <= BestByDate + x ){
               
               System.out.println("safe");
           }
           else{
               
               System.out.println("dangerous");
           }
        }
    }


Compiler output:
Main.java:3: error: class Problem14 is public, should be declared in a file named Problem14.java
public class Problem14 {
       ^
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 << "safe" << endl;
  }else if(b-a>x){
    cout << "dangerous" << endl;
  }else{
  cout << "delicious" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(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=x){
    cout << "safe" << endl;
  }else if(b-a>x){
    cout << "dangerous" << endl;
  }else{
  cout << "delicious" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: lvalue required as left operand of assignment
    6 |   if(b-a=x){
      |      ~^~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
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();
		
		if(B-A <= X && A-B>=0){
			System.out.ptintln("delicious");
		} else if(B-A <= X){
			System.out.ptintln("safe");
		} else{
			System.out.ptintln("dangerous");
		}
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
			System.out.ptintln("delicious");
			          ^
  symbol:   method ptintln(String)
  location: variable out of type PrintStream
Main.java:14: error: cannot find symbol
			System.out.ptintln("safe");
			          ^
  symbol:   method ptintln(String)
  location: variable out of type PrintStream
Main.java:16: error: cannot find symbol
			System.out.ptintln("dangerous");
			          ^
  symbol:   method ptintln(String)
  location: variable out of type PrintStream
3 errors
Language: C++

///....DH....///
#include <bits/stdc++.h>
#define task                "Built"
#define fi(a)               freopen(a, "r", stdin)
#define fo(a)               freopen(a, "w", stdout)

#define pii                 pair<int, int>
#define ft                  first
#define sd                  second
#define mp                  make_pair

#define pb                  push_back
#define pf                  push_front
#define popb                pop_back
#define popf                pop_front

#define reset(a, x)         memset(a, x, sizeof(a))
#define For(i, s, n, m)     for(int i = s; i <= n; i += m)
#define Ford(i, s, n, m)    for(int i = s; i >= n; i -= m)

using namespace std;

template <typename R, typename D> inline void Min(R &a, D b) {
    if(a>b)
        a=b;
}
template <typename D, typename R> inline void Max(D &a, R b) {
    if(a<b)
        a=b;
}

/** MOD **/                 const long long mod = 1e9 + 7;
/** size of array **/       const int maxn = 200005;
/** PI **/                  const double M_PI = 3.14159265358979323846;

struct edge {
    int x, y, w;
    bool operator < (const edge &P) {
        return w < P.w;
    }
} a[maxn], b[maxn];
int cnt, n, res, p[maxn];

bool cmpx (edge P, edge Q) {
    return P.x < Q.x;
}

bool cmpy (edge P, edge Q) {
    return P.y < Q.y;
}

int Find(int u) {
    if(u == p[u])
        return u;
    return p[u] = Find(p[u]);
}

int dsu(edge e) {
    int x = Find(e.x);
    int y = Find(e.y);
    if(x == y)
        return 0;
    p[x] = y;
    return e.w;
}

main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    cin >> n;
    for(int i = 1; i <= n; i++) {
        cin >> a[i].x >> a[i].y;
        a[i].w = i;
    }
    sort(a + 1, a + n + 1, cmpx);
    for(int i = 1; i < n; i++) {
        b[++cnt].x = a[i].w;
        b[cnt].y = a[i + 1].w;
        b[cnt].w = min(abs(a[i].x - a[i + 1].x), abs(a[i].y - a[i + 1].y));
    }
    sort(a + 1, a + n + 1, cmpy);
    for(int i = 1; i < n; i++) {
        b[++cnt].x = a[i].w;
        b[cnt].y = a[i + 1].w;
        b[cnt].w = min(abs(a[i].x - a[i + 1].x), abs(a[i].y - a[i + 1].y));
    }
    sort(b + 1, b + cnt + 1);
    for(int i = 1; i <= n; i++)
        p[i] = i;
    for(int i = 1; i <= cnt; i++) {
        res += dsu(b[i]);
    }
    cout << res;
}
//6 8 3 4 9 12 19 18 1 13 5 7 6 -> 8


Compiler output:
In file included from /usr/include/c++/14/cmath:47,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:114,
                 from a.cc:2:
a.cc:34:42: error: expected unqualified-id before numeric constant
   34 | /** PI **/                  const double M_PI = 3.14159265358979323846;
      |                                          ^~~~
a.cc:67:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   67 | main() {
      | ^~~~
Language: C++

/*
 ──────────────────────────────────────
 ─▄▄▄───────────▄▄▄▄▄▄▄────────────────
 █▀░▀█──────▄▀▀▀░░░░░░░▀▀▄▄────────────
 █░░░░█───▄▀░░░░░░░░░░░░░░░▀▄───────▄▄▄
 █▄░░░▀▄▄▀░░██░░░░░░░░░░░░░░▀█────█▀▀░█
 ─█░░░░█▀░░░▀░░░░░░░░██░░░░░░▀█─▄█░░░░█
 ─▀█░░▄█░░░░░░░▄▄▄░░░░▀░░░░░░░███░░░░█▀
 ──█▄░█░░░░░▄███████▄░░░░░░░░░█▀░░░░▄▀─
 ──▀█░█░░░░▄██████████░░░░░░░▄█░░░░▄▀──
 ───███░░░░███████████░░░░░░▄█░░░░█▀───
 ────█░░░░░██████████▀░░░░░░█░░░░█▀────
 ────█░░░░░░▀███████▀░░░░░░░█▄▄▄▀──────
 ────█░░░░░░░░▀▀▀▀░░░░░░░░░░░▀█────────
 ────█░░░░░░░░░░░░░░░░░░░░░░░░█────────
 ────█░░░░░░░░░░░░░░░░░░░░░░░░█────────
 ────█░░░░░░░░░░░░░░░░░░░░░░░░█────────
 ──────────────────────────────────────
 */
#include <bits/stdc++.h>
#define int long long
#define ii pair<int, int>
#define jj pair<int, pair< int , int > >
#define f first
#define s second
using namespace std ;

void TIME();

int n;
struct Tnode
{
    int x, y, id;
};
Tnode A[100010];
struct Tnode1
{
    int rt1, rt2, val;
    Tnode1(int _rt1,int _rt2,int _val)
    {
        rt1 = _rt1;
        rt2 = _rt2;
        val = _val;
    }
};
bool cmp(Tnode1 a, Tnode1 b)
{
    return a.val < b.val;
}
bool xcmp(Tnode a, Tnode b)
{
    return a.x < b.x;
}
bool ycmp(Tnode a, Tnode b)
{
    return a.y < b.y;
}
vector <Tnode1> Canh;
int pa[100010];
int val[100010];

int root(int u)
{
    if(pa[u] == u) return u;
    return pa[u] = root(pa[u]);
}

bool DSU(int x, int y)
{
    // cout <<".";
    x = root(x);
    y = root(y);
    if(x == y)
    {
        return 0;
    }
    if(val[x] < val[y])
    {
        swap(x, y);
    }
    val[x] += val[y];
    pa[y] = x;
    return 1;
}
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0) ; cout.tie(0);

	// freopen("D_build.inp","r",stdin);
	// freopen("D_build.inp","w",stdout);
	// freopen("D_build.out","w",stdout);

    cin >> n;
    for(int i = 1, x, y ; i <= n ; i ++)
    {
        cin >> x >> y;
        A[i].x = x;
        A[i].y = y;
        A[i].id = i;
    }
    sort(A+1,A+1+n,xcmp);
    for(int i = 2 ; i <= n ; i ++)
    {
        Canh.push_back(Tnode1(A[i-1].id,A[i].id, min( abs(A[i-1].x-A[i].x),abs(A[i-1].y- A[i].y)))) ;
    }
    sort(A+1,A+1+n,ycmp);
    for(int i = 2 ; i <= n ; i ++)
    {
        Canh.push_back(Tnode1(A[i-1].id,A[i].id,min(abs(A[i-1].x-A[i].x), abs(A[i-1].y-A[i].y))));
    }
    sort(Canh.begin(), Canh.end(), cmp);
    int Ans = 0;
    for(int i = 1 ; i <= n ; i ++)
    {
        val[i] = 1;
        pa[i] = i;
    }
//    for(int i = 0 ; i < Canh.size() ; i ++)
//    {
//        cout << Canh[i].rt1 <<" "<< Canh[i].rt2 <<" " << Canh[i].val  << endl;
//    }
    for(int i = 0 ; i < Canh.size() ; i ++)
    {
        Tnode1 Res = Canh[i];
        //cout <<".";
        if(DSU(Res.rt1, Res.rt2))
        {
            Ans += Res.val;
        }
    }
    cout << Ans;
	return 0;
}

void TIME()
{
	cerr << "Time elapsed : " << clock() * 1000 / CLOCKS_PER_SEC << "ms\n";
}


Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include <vector>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
#include <cmath>
#include <queue>
#include <map>
#include <iomanip>
#include <random>
#include <fstream>
#define rep(i, n) for (int i = 0; i < n; i++)
#define PI 3.14159265358979323846
#define MOD 1000000007
using namespace std;
using ll = long long;

const int MAX = 1000000;

ll fac[MAX], finv[MAX], inv[MAX];

// テーブルを作る前処理
void COMinit() {
  fac[0] = fac[1] = 1;
  finv[0] = finv[1] = 1;
  inv[1] = 1;
  for (int i = 2; i < MAX; i++){
    fac[i] = fac[i - 1] * i % MOD;
    inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
    finv[i] = finv[i - 1] * inv[i] % MOD;
  }
}

// 二項係数計算
long long COM(int n, int k){
  if (n < k) return 0;
  if (n < 0 || k < 0) return 0;
  return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

ll gcd(ll a, ll b)
{
  ll r;
  while ((r = a % b))
  {
    a = b;
    b = r;
  }
  return b;
}

template <class T> struct cord{
  T x,y;
};

template <class T> double dist(cord<T> a, cord<T> b){
  T dx=a.x-b.x;
  T dy=a.y-b.y;
  return sqrt(dx*dx+dy*dy);
}

int main()
{

  //cout << fixed << setprecision(10);

  int x,a,b; cin >> x >> a >> b;

  if (B<=A){cout << "delicious";}
  else if (B<=A+X){cout << "safe";}
  else {cout << "dangerous";}

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:70:7: error: 'B' was not declared in this scope
   70 |   if (B<=A){cout << "delicious";}
      |       ^
a.cc:70:10: error: 'A' was not declared in this scope
   70 |   if (B<=A){cout << "delicious";}
      |          ^
a.cc:71:17: error: 'X' was not declared in this scope
   71 |   else if (B<=A+X){cout << "safe";}
      |                 ^
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: expected primary-expression before '>' token
   14 |   }else if(x+a=>b){
      |                ^
Language: C++

#include <bits/stdc++.h>
#define rep(var,cnt) for(int (var)=0; (var)<(int)(cnt); ++(var))
#define Rep(var,init,cnt) for(int (var)=(init); (var)<(cnt); ++(var))
#define ran(var,vec) for(auto &(var):(vec))
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define SORT(v) sort(all(v))
#define RSORT(v) sort(rall(v))
#define SUM(v) accumulate(all(v),0)
#define tget(tp,idx) get<idx>(tp)
#define TF(flag) (flag)?1:0
using namespace std;

using ll = long long;
using ull = unsigned long long;
using pi = pair<int,int>;
using pl = pair<ll,ll>;
using ti = tuple<int,int,int>;
using tl = tuple<ll,ll,ll>;

template<typename T>
using vec = vector<T>;
template<typename T>
using mat = vector<vec<T>>;
template<typename T>
using cub = vector<mat<T>>;
template<typename T>
using val = valarray<T>;

template<typename T>
using pq = priority_queue<T>;
template<typename T>
using rpq = priority_queue<T,vec<T>,greater<T>>;

template<typename T1,typename T2>
ostream &operator<<(ostream &os, const pair<T1,T2> &p){
  os<<"P("<<p.first<<", "<<p.second<<") ";
  return os;
}

template<typename T1,typename T2>
istream &operator>>(istream &is, pair<T1,T2> &p){
  is>>p.first>>p.second;
  return is;
}

template<typename T>
ostream &operator<<(ostream &os, const vector<T> &v){
  cout<<"V{";
  for(int i=0; i<(int)v.size(); ++i){
    os<<v[i]<<(i+1!=v.size()?" ":"");
  }
  cout<<"}";
  return os;
}

template<typename T>
istream &operator>>(istream &is, vector<T> &v){
  for(T &in:v) is>>in;
  return is;
}

template<typename T>
ostream &operator<<(ostream &os, const valarray<T> &v){
  cout<<"V{";
  for(int i=0; i<(int)v.size(); ++i){
    os<<v[i]<<(i+1!=v.size()?" ":"");
  }
  cout<<"}";
  return os;
}

template<typename T>
istream &operator>>(istream &is, valarray<T> &v){
  for(T &in:v) is>>in;
  return is;
}

// Usual Template End ================================================

// Template End ======================================================

constexpr int MOD=1e9+7;

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













Compiler output:
a.cc: In function 'int main()':
a.cc:88:16: error: 'x' was not declared in this scope
   88 |   else if(c-b<=x) cout<<"safe"<<endl;
      |                ^
Language: C++

#include <stdlib.h>
#include <bits/stdc++.h>
#include <math.h>
using namespace std;
using ll=long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
inline constexpr ll gcd(ll a,ll b){if(!a||!b)return 0;while(b){ll c=b;b=a%b;a=c;}return a;}
inline constexpr ll lcm(ll a,ll b){if(!a||!b)return 0;return a*b/gcd(a,b);}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: 'x' was not declared in this scope
   17 |     if(b-c<0&&x>=b-c){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main(){
  long 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;}

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '>>' token
    7 |   cin >> x >> >> a >> b;
      |               ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main(){
  long 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;}

  return 0;
}

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

data = input().split(" ")
for i in range(3):
	data[i] = int(data[i])
a = data[0] + data[1] - data[2]
if data[2] <= data[1]:
	print("delicious")
elif a >= 0:
	print("safe")
else:
	print("dangerous")

Compiler output:
a.cc:1:1: error: 'data' does not name a type
    1 | data = input().split(" ")
      | ^~~~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Sting[] args){
                          ^
  symbol:   class Sting
  location: class Main
1 error
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: expected ';' before '}' token
   14 |                 k = "dangerous"
      |                                ^
      |                                ;
   15 |          }
      |          ~
Language: C++

#include<stdio .h> int main()
{
intx,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:1:20: warning: extra tokens at end of #include directive
    1 | #include<stdio .h> int main()
      |                    ^~~
a.cc:1:9: fatal error: stdio .h: No such file or directory
    1 | #include<stdio .h> int main()
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    long long int n,m,p;
   cin>>n>>m>>p;
   if(m>n&&p<n||n<m&&p>n)
   {
         cout<<"safe"<<endl;
   }
   if(n>=m&&n>=p)
   {
        cout<<"delicious"<<endl;
   }
   if(n<m&&P>n)
   {
       cout<<"dangerous"<<endl;
   }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: 'P' was not declared in this scope
   15 |    if(n<m&&P>n)
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'x' was not declared in this scope
   10 |   if (b - a <=x)
      |               ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string.h>
#include <iomanip>
#include <map>
#include <cstdlib>
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:17:24: error: 'X' was not declared in this scope
   17 |     else if (-a + b <= X)
      |                        ^