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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'unsafe' was not declared in this scope; did you mean 'unshare'?
    8 |   cout << unsafe << endl;}
      |           ^~~~~~
      |           unshare
a.cc:9:15: error: 'safe' was not declared in this scope
    9 | else {cout << safe << end;}
      |               ^~~~
Language: Java

import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
  int W=sc.nextInt();
  int S=sc.nextInt();
  
  if(S<=W){
  System.out.println("unsafe");
  }
  else{
  System.out.println("safe");
  }
}

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

import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
  int W=sc.nextInt();
  int S=sc.nextInt();
  
  if(S<=W){
  System.out.println("unsafe");
  }
  else{
  System.our.println("safe");
  }
}

}

Compiler output:
Main.java:12: error: cannot find symbol
  System.our.println("safe");
        ^
  symbol:   variable our
  location: class System
1 error
Language: C

#include <bits/stdc++.h>
typedef long long int ll;
typedef unsigned long long ull;
typedef long double ld;
#define F first
#define S second
#define pll pair<ll,ll>
#define pii pair<int,int>
#define len(s) s.length()
#define all(v) v.begin(),v.end()
const ll INF = INT_MAX;
const int N = 2e5 + 5;
const ll mod = 1000000007 ;
using namespace std;

int main() {

	ios_base::sync_with_stdio(false);
	cin.tie(NULL), cout.tie(NULL);


	ll tc = 1;
	// cin >> tc;
	while (tc--) {

		ll n, m, l, r;
		ll i, j;
		ll x, y;

		ll w, s;
		cin >> s >> w;

		if (w >= s) {
			cout << "unsafe" << endl;
		}
		else
			cout << "safe" << endl;
	}
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
typedef long long int ll;
typedef unsigned long long ull;
typedef long double ld;
#define F first
#define S second
#define pll pair<ll,ll>
#define pii pair<int,int>
#define len(s) s.length()
#define all(v) v.begin(),v.end()
const ll INF = INT_MAX;
const int N = 2e5 + 5;
const ll mod = 1000000007 ;
using namespace std;

int main() {



	ios_base::sync_with_stdio(false);
	cin.tie(NULL), cout.tie(NULL);


	ll tc = 1;
	// cin >> tc;
	while (tc--) {

		ll n, m, l, r;
		ll i, j;
		ll x, y;
		
		ll w, s;
		cin >>s >> w;

		if(w >= s){
			cout << "unsafe" << endl;
		}
		else
			cout << "safe" << endl;
	}
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<stdlib.h>
#define inf 100000000000
#define max (N-1)*50
#define mi(x,v) x<v?x:v
#define ll long long int
long N,M,S;
int T_n[55] = {};
int Used[55][2510];
ll city[55][2510];
ll ans[55];

typedef struct {
	int to,cost;
    ll time;
}train;
train* T[55];

int dijkstra() {
	for (int i = 0; i < N; i++) {
		ans[i] = -1;
		for (int j = 0; j <= max; j++) {
			city[i][j] = inf;
			Used[i][j] = 1;
		};
	};
	ans[0] = 0;
	city[0][S] = 0;
	ll min;
	int  mati=0, money=0, co=1;
	while (1) {
		min = inf;
		for (int i = 0; i < N; i++) {
			for (int j = 0; j <= max; j++) {
				if (min > city[i][j] && Used[i][j]) {
						min = city[i][j];
						mati = i;
						money = j;
				};
			};
		};
		if (ans[mati]==-1) {
			ans[mati] = min;
			co++;
			if (co == N) {
				return 0;
			};
		};
		for (int i = 0; i <= money; i++) {
			Used[mati][i] = 0;
		};
		for (int i = 0; i < T_n[mati]; i++) {
			
			if (money >= T[mati][i].cost
				 && T[mati][i].time + min <city[T[mati][i].to][mi(money - T[mati][i].cost,max)] )
            {
					city[T[mati][i].to][mi(money - T[mati][i].cost,max)] = T[mati][i].time + min;

				
			};
		};
	};
};


int main() {
	scanf("%ld %ld %ld", &N, &M, &S);
	S = mi(S, max);
	int u, v, a, b,c,d;
	for (int i = 0; i < M; i++) {
		scanf("%d %d %d %d", &u, &v, &a, &b);
		u--; v--;
		T[u] = (train *)realloc(T[u], sizeof(train) * (T_n[u] + 1));
		T[v] = (train *)realloc(T[v], sizeof(train) * (T_n[v] + 1));
		T[u][T_n[u]] =(train){ v,a,b };
		T[v][T_n[v]] = (train){ u,a,b };
		T_n[u]++;
		T_n[v]++;
	};
	for (int i = 0; i < N; i++) {
		scanf("%d %d", &c, &d);
      if(i!=0&&T[i][T_n[i]-1]>c)return 0; 
		T[i] = (train *)realloc(T[i], sizeof(train) * (T_n[i] + 1));
		T[i][T_n[i]] = (train){ i,-1*c,d };
		T_n[i]++;
	};
	if(dijkstra()!=0)return 2;
	for (int i = 1; i < N; i++) {
		printf("%lld\n", ans[i]);
	};
};


Compiler output:
main.c: In function 'main':
main.c:82:30: error: invalid operands to binary > (have 'train' and 'int')
   82 |       if(i!=0&&T[i][T_n[i]-1]>c)return 0;
      |                ~~~~~~~~~~~~~~^
      |                    |
      |                    train
Language: C++

#include <bits/stdc++.h>
using namespace std;
using str = string;
using ll = long long;
#define REP(i,n) for(int i=0; i<int(n); i++)
#define RREP(i,n) for(int i=int(n)-1; i>=0; i--)
#define FOR(i,f,t) for(int i=int(f); i<=int(t); i++)
#define RFOR(i,f,t) for(int i=int(f); i>=int(t); i--)
#define ALL(vec) (vec).begin(),(vec).end()
#define ASORT(vec) sort(ALL(vec))
#define DSORT(vec) sort(ALL(vec), greater<int>());
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
#define YES(ans) if(ans) cout<<"YES"<<endl; else cout<<"NO"<<endl;
#define Yes(ans) if(ans) cout<<"Yes"<<endl; else cout<<"No"<<endl;
#define yes(ans) if(ans) cout<<"yes"<<endl; else cout<<"no"<<endl;
#define INF 1000000000000
#define NOD 1000000007
#define PI 3.141592653589793238462643

int main() {
    int s, w,
    cin >> s >> w;
    if(s > w) cout << "safe" << endl;
    else cout << "unsafe" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: expected initializer before '>>' token
   23 |     cin >> s >> w;
      |         ^~
Language: C

#include<stdio.h>
int main(void){
int s,w;
  scanf("%d%d",&s,&w);
  if(w>=s)printf("unsafe");
  else printf("safe"):
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:22: error: expected ';' before ':' token
    6 |   else printf("safe"):
      |                      ^
      |                      ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int s,w;
  cin>>s>>w;
  if(w>=s)
    cout<<"unsafe";
  else{
    cout<<"safe";
  return 0;
}

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

#include <bits/stdc++.h>

usnig namespace std;

int main ()
{
  int S,W;
  cin>>S>>W;
  if(S<=W)
  {
    cout<<"unsafe"<<endl;
  }
  else
  {
    cout<<"safe"<<endl;
  }
  return 0;
}

Compiler output:
a.cc:3:1: error: 'usnig' does not name a type
    3 | usnig namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>S>>W;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"unsafe"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<"unsafe"<<endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout<<"safe"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     cout<<"safe"<<endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#define __STDC_WANT_LIB_EXT1__ 1
#include <stdio.h>
#include <math.h>
 
int main(int argc, const char * argv[])
{
    long double circleRadius, circumReference;
    scanf("%Lf", &circleRadius);
    
    circumReference = 2 * M_PI * circleRadius;
    printf_s("%Lf", circumReference);
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:5: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     printf_s("%Lf", circumReference);
      |     ^~~~~~~~
      |     printf
Language: C

#define __STDC_WANT_LIB_EXT1__
#include <stdio.h>
#include <math.h>
 
void StartProgram()
{
    long double circleRadius, circumReference;
    scanf("%Lf", &circleRadius);
    
    circumReference = 2 * M_PI * circleRadius;
    printf_s("%Lf", circumReference);
    
    return ;
}
 
int main(int argc, const char * argv[])
{
    StartProgram();
    
    return 0;
}

Compiler output:
main.c: In function 'StartProgram':
main.c:11:5: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     printf_s("%Lf", circumReference);
      |     ^~~~~~~~
      |     printf
Language: C

#include <stdio.h>
#include <math.h>
 
void StartProgram()
{
    long double circleRadius, circumReference;
    scanf("%Lf", &circleRadius);
    
    circumReference = 2 * M_PI * circleRadius;
    printf_s("%Lf", circumReference);
    
    return ;
}
 
int main(int argc, const char * argv[])
{
    StartProgram();
    
    return 0;
}

Compiler output:
main.c: In function 'StartProgram':
main.c:10:5: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     printf_s("%Lf", circumReference);
      |     ^~~~~~~~
      |     printf
Language: C++

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

int main(){
int S,W;
  cin >> S >> W ;
  
  if(W>=S){
    
    cout << unsafe << endl;
    
  }
  
  else{
    cout << safe << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'unsafe' was not declared in this scope; did you mean 'unshare'?
   10 |     cout << unsafe << endl;
      |             ^~~~~~
      |             unshare
a.cc:15:13: error: 'safe' was not declared in this scope
   15 |     cout << safe << endl;
      |             ^~~~
Language: C++

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

int main(){
int S,W;
  cin >> S >> W ;
  
  if(W>=S){
    
    cout << unsafe << endl;
    
  }
  
  else{
    cout << safe << endl;
  }
}


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

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define mod 1000000007
#define MOD = 998244353;
#define int long long int
#define double long double
#define inf (int)(1e15)
#define all(x) (x).begin(), (x).end()
#define Yes cout << "Yes" << endl
#define No cout << "No" << endl
#define YES cout << "YES" << endl
#define NO cout << "NO" << endl
#define isYes(x) printf("%s\n", (x) ? "Yes" : "No")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define isIn(x, y, h, w) (x >= 0 && x < h && y >= 0 && y < w)
#define pair pair<int, int>
typedef vector<int> vi;   // Vector of long long
typedef vector<vi> vvi;   // Vector of vi
typedef vector<pair> vii; // Vector of pairs
typedef vector<vii> vvii; // Vector of Vector of pairs
typedef vector<bool> vb;  // Vector of bool
#define pq priority_queue // Max heap (To convert to min heap, use negative sign before every value)
#define ff first          // For pairs
#define ss second
const int dx4[] = {1, 0, -1, 0}, dy4[] = {0, -1, 0, 1};
const int dx8[] = {0, 0, 1, 1, 1, -1, -1, -1}, dy8[] = {1, -1, 1, 0, -1, 1, -0, -1};
#define testcases(t) \
    int(t);          \
    cin >> (t);      \
    while ((t)--)
#define range(c, r) (c).begin(), (c).begin() + (r)    // Mainly used in sorting
#define present(c, x) ((c).find(x) != (c).end())      // for sets, maps, multi-maps
#define cpresent(c, x) (find(all(c), x) != (c).end()) // for vectors
#define run(x, c) for ((x) = (c).begin(); (x) != (c).end(); (x)++)
#define fo0 (i, n) for (i = 0; i < n; i++)
#define fo1 (i, n) for (i = 1; i <= n; i++)
#define rfo(i, n) for (i = n - 1; i >= 0; i--)
#define rfor(i, n) for (i = n; i > 0; i--)
signed main()
{
    int s, w;
    cin >> s >> w;
    if (w >= s)
        cout << "unsafe" << endl;
    else
        cout << "safe" << endl;
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:49:14: error: expected '}' at end of input
   49 |     return 0;
      |              ^
a.cc:42:1: note: to match this '{'
   42 | {
      | ^
Language: Java

import java.io.*;
import java.util.*;
public class C164A
{
    static PrintWriter out=new PrintWriter((System.out));
    public static void main(String args[])throws IOException
    {
        Reader sc=new Reader();
        int n=sc.nextInt();
        int s=sc.nextInt();
        if(n<=s)
        {
            out.println("unsafe");
        }
        else
        {
            out.println("safe");
        }
        out.close();
    }


    static class Reader
    {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        StringTokenizer st=new StringTokenizer("");
        public String next()
        {
            while(!st.hasMoreTokens())
            {
                try
                {
                    st=new StringTokenizer(br.readLine());
                }
                catch(Exception e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        public int nextInt()
        {
            return Integer.parseInt(next());
        }

        public long nextLong()
        {
            return Long.parseLong(next());
        }

        public double nextDouble()
        {
            return Double.parseDouble(next());
        }

        public String nextLine()
        {
            try
            {
                return br.readLine();
            }
            catch(Exception e)
            {
                e.printStackTrace();
            }
            return null;
        }

        public boolean hasNext()
        {
            String next=null;
            try
            {
                next=br.readLine();
            }
            catch(Exception e)
            {
            }
            if(next==null)
            {
                return false;
            }
            st=new StringTokenizer(next);
            return true;
        }
    }
}

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

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

int main() {
  int S, W;
  cin S >> W;
  if (S <= W) cout << "unsafe";
  else        cout << "safe";
}


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

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

int main() {
  int S, W;
  cin S >> W;
  if (S <= W) cout << "unsafe";
  else        cout << "safe;"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'S'
    6 |   cin S >> W;
      |      ^~
      |      ;
a.cc:8:30: error: expected ';' before '}' token
    8 |   else        cout << "safe;"
      |                              ^
      |                              ;
    9 | }
      | ~
Language: C

#include<stdio.h>

int main(void){
 	
  int S,W;
  
  scanf("%d %d",&S,&W);
  
  if(S > W){
   	printf("safe"); 
  }else{
   	printf("unsafe"); 
  }
  
  return 0
}

Compiler output:
main.c: In function 'main':
main.c:15:11: error: expected ';' before '}' token
   15 |   return 0
      |           ^
      |           ;
   16 | }
      | ~
Language: C

#include <iostream>
using namespace std; 
  

int main() 
{ 
  	int a, w;
    cin>>a>>w;
  	if(w>a)
      	cout<<"unsafe";
  	else
      	cout<<"safe";
    return 0;
} 

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <iostream> 
using namespace std; 
  

int main() 
{ 
  	int a, w;
    cin>>a>>w;
  	if(w>a)
      	cout<<"unsafe";
  	else
      	cout<<"safe";
    return 0;
} 

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main(void)
{
        int s.w;

        scanf("%d%d",&s,&w);

        if(s<=w) printf("unsafe");
        else     printf("safe");
        return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    5 |         int s.w;
      |              ^
main.c:5:14: error: expected expression before '.' token
main.c:7:23: error: 's' undeclared (first use in this function)
    7 |         scanf("%d%d",&s,&w);
      |                       ^
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:26: error: 'w' undeclared (first use in this function)
    7 |         scanf("%d%d",&s,&w);
      |                          ^
Language: C++

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

int main(){
    int s,w;
    cin >> s >> w;
    if(s =< w)cout << "unsafe" << endl;
    else cout << "safe" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before '<' token
   10 |     if(s =< w)cout << "unsafe" << endl;
      |           ^
Language: C++

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

int main() {
     int S, W;
     cin >> S >> W;  
  if(W >= S){
     cout << "unsafe" <<endl;}
  else{
     cou << "safe" <<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'cou' was not declared in this scope; did you mean 'cos'?
   10 |      cou << "safe" <<endl;
      |      ^~~
      |      cos
Language: Java

import java.io.File;
import java.util.Scanner;

public class sheep {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int s = sc.nextInt(); int w = sc.nextInt();
		System.out.println(w<s?"safe":"unsafe");

	}
}


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

#include <bits/stdc++.h>
int main() {
    int S, W;
    char ans;
    cin >> S >> W;
    if (S <= W) printf("unsafe");
    else printf("safe");  
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> S >> W;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <bits/stdc++.h>
 
int main() {
	int s, w;
	cin >> s >> w;
	w >= s ? cout << "unsafe" : cout << "safe";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> s >> w;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         w >= s ? cout << "unsafe" : cout << "safe";
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>

int main() {
	int s, w;
	cin >> s >> w;
	w >= s ? cout << "unsafe" : cout << "safe";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> s >> w;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         w >= s ? cout << "unsafe" : cout << "safe";
      |                  ^~~~
      |                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<bits/stdc++.h>

using namespace std;
typedef long long ll;
//ループ
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//コンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
#define D()
//定数
#define INF 1000000000000 //10^12
#define MOD 10000007 //10^9+7
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素

int main(){
    int s, w;
    cin >> s >> w;
    if(s<=w) {cout << "unsafe" << endl;}
    else {cout << "safe" << endl;}
}

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

#include <bits/stdc++.h>
//For ordered_set
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define MOD 1000000007
#define test int t; cin>>t; while(t--)
#define init(arr,val) memset(arr,val,sizeof(arr))
#define loop(i,a,b) for(int i=a;i<b;i++)
#define loopr(i,a,b) for(int i=a;i>=b;i--)
#define loops(i,a,b,step) for(int i=a;i<b;i+=step)
#define looprs(i,a,b,step) for(int i=a;i>=b;i-=step)
#define ull unsigned long long int
#define ll long long int
#define P pair
#define PLL pair<long long, long long>
#define PII pair<int, int>
#define PUU pair<unsigned long long int, unsigned long long int>
#define L list
#define V vector
#define D deque
#define ST set
#define MS multiset
#define M map
#define UM unordered_map
#define mp make_pair
#define pb push_back
#define pf push_front
#define MM multimap
#define F first
#define S second
#define IT iterator
#define RIT reverse_iterator
#define FAST ios_base::sync_with_stdio(false);cin.tie();cout.tie();
#define FILE_READ_IN freopen("input.txt","r",stdin);
#define FILE_READ_OUT freopen("output.txt","w",stdout);
#define all(a) a.begin(),a.end()
using namespace std;
// For ordered_set
using namespace __gnu_pbds;
template <typename T>
using ord_set = tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;
const ll maxn = 1e5;
const ll inf = 1e9;
const double pi = acos(-1);

void solve()
{
    int s,w; cin >> s >> w;
    if (w>= s)
    {
        cout << "unsafe" << "\n";
    }
    else
    {
        cout << "safe" << "\n";
    }
    
    
}

int main()
{
   solve()
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:63:11: error: expected ';' before 'return'
   63 |    solve()
      |           ^
      |           ;
   64 |    return 0;
      |    ~~~~~~
Language: Java

import java.util.Scanner;

class Main{
  public static  void  main(String[]args){
    if(sc.nextInt()>=sc.nextInt())
      System.out.println("unsafe");
    else
      System.out.println("safe");
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    if(sc.nextInt()>=sc.nextInt())
       ^
  symbol:   variable sc
  location: class Main
Main.java:5: error: cannot find symbol
    if(sc.nextInt()>=sc.nextInt())
                     ^
  symbol:   variable sc
  location: class Main
2 errors
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
    int s, w;
    cin >> s >> w;
    string ans;
    ans = (s > w)?"safe": "unsafe";
    cout << ans << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int s, w;
  cin >> s >> w;
  if(s > w) {
    cout << "safe" <<endl;
  }
  else {
    cout "unsafe" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before string constant
   11 |     cout "unsafe" << endl;
      |         ^~~~~~~~~
      |         ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int s w;
  cin >> s >> w;
  if(s > w) {
    cout << "safe" <<endl;
  }
  else {
    cout "unsafe" << endl;
  
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'w'
    5 |   int s w;
      |         ^
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s >> w;
      |          ^
a.cc:6:15: error: 'w' was not declared in this scope
    6 |   cin >> s >> w;
      |               ^
a.cc:11:9: error: expected ';' before string constant
   11 |     cout "unsafe" << endl;
      |         ^~~~~~~~~
      |         ;
Language: C++

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

int main() {
  int s w;
  cin >> s >> w;
  if(s > w) {
    cout << "safe" <<endl;
  }
  else {
    cout "unsafe" << endl;
  
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'w'
    5 |   int s w;
      |         ^
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s >> w;
      |          ^
a.cc:6:15: error: 'w' was not declared in this scope
    6 |   cin >> s >> w;
      |               ^
a.cc:11:9: error: expected ';' before string constant
   11 |     cout "unsafe" << endl;
      |         ^~~~~~~~~
      |         ;
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

int main(){
int s,w;
scanf("%d%d",&s,&w);
if(w>=s)printf("unsafe");
else printf("safe");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%d%d",&s,&w);
      | ^~~~~
a.cc:4:9: error: 'printf' was not declared in this scope
    4 | if(w>=s)printf("unsafe");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:5:6: error: 'printf' was not declared in this scope
    5 | else printf("safe");
      |      ^~~~~~
a.cc:5:6: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>

int main() {
    int S, W;
    cin >> S >> W;
    
    if(S<=W) {
      cout << "unsafe" <<endl;
    } else {
      cout << "safe" <<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> S >> W;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << "unsafe" <<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       cout << "unsafe" <<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:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << "safe" <<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout << "safe" <<endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <cstdlib>
#include <cmath>
#define rep(i,n) for (long long i=0; i < (n); ++i)
#define rep2(i,n,m) for(long long i=n;i<=m;i++)
using namespace std;
using ll = long long;
using P = pair<int,int>;
const ll INF=1e18 ;
inline void chmax(ll& a,ll b){a=max(a,b);}
inline void chmin(ll& a,ll b){a=min(a,b);}
int main() {
 int s,w ;
 cin >> s>> w;
 if(s<=w)
 cout <<"unsafe" << endl ;
 else

  cout <<　"safe" <<endl ;
     return 0;
}

Compiler output:
a.cc:19:10: error: extended character 　 is not valid in an identifier
   19 |   cout <<　"safe" <<endl ;
      |          ^
a.cc: In function 'int main()':
a.cc:19:10: error: '\U00003000' was not declared in this scope
   19 |   cout <<　"safe" <<endl ;
      |          ^~
Language: C

#include <iostream> 
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++) 

int main() {
    int S, W;
    cin >> S >> W;
    if (W >= S) {
        cout << "unsafe" << endl;
    } else cout << "safe" << endl;
    
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<iostream> 
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)n; i++) 

int main() {
    int S, W;
    cin >> S >> W;
    if (W >= S) {
        cout << "unsafe" << endl;
    } else cout << "safe" << endl;
    
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace　std;
int main(){
  int s, w;
  string ans;
  cin >> s >> w;
  if (s <= w) ans ="unsafe";
  else ans = "safe";
  cout << ans << endl;
}

Compiler output:
a.cc:2:7: error: extended character 　 is not valid in an identifier
    2 | using namespace　std;
      |       ^
a.cc:2:7: error: expected nested-name-specifier before 'namespace\U00003000std'
    2 | using namespace　std;
      |       ^~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string ans;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> s >> w;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   if (s <= w) ans ="unsafe";
      |               ^~~
      |               abs
a.cc:8:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   else ans = "safe";
      |        ^~~
      |        abs
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cout << ans << endl;
      |           ^~~
      |           abs
a.cc:9:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << ans << 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 <stdio.h>
int main(){
int s,w;
  scanf("%d %d", &s, &w);
  if(s<=w){
    printf("unsafe")}else{
    printf("safe")}
  return 0;
    

}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: expected ';' before '}' token
    6 |     printf("unsafe")}else{
      |                     ^
      |                     ;
main.c:7:19: error: expected ';' before '}' token
    7 |     printf("safe")}
      |                   ^
      |                   ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int s,w;cin>>s>>w;
if(w=>s) cout<<"unsafe";
else cout<<"safe";
return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected primary-expression before '>' token
    5 | if(w=>s) cout<<"unsafe";
      |      ^
a.cc:7:10: error: expected '}' at end of input
    7 | return 0;
      |          ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int s,w;cin>>s>>w;
if(w=>s) cout<<unsafe;
else cout<<safe;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected primary-expression before '>' token
    5 | if(w=>s) cout<<unsafe;
      |      ^
a.cc:5:16: error: 'unsafe' was not declared in this scope; did you mean 'unshare'?
    5 | if(w=>s) cout<<unsafe;
      |                ^~~~~~
      |                unshare
a.cc:6:12: error: 'safe' was not declared in this scope
    6 | else cout<<safe;
      |            ^~~~
Language: C++

int s,w;cin>>s>>w;
if(w=>s) cout<<unsafe;
else cout<<safe;

Compiler output:
a.cc:1:9: error: 'cin' does not name a type
    1 | int s,w;cin>>s>>w;
      |         ^~~
a.cc:2:1: error: expected unqualified-id before 'if'
    2 | if(w=>s) cout<<unsafe;
      | ^~
a.cc:3:1: error: expected unqualified-id before 'else'
    3 | else cout<<safe;
      | ^~~~
Language: C

#include <stdio.h>
int main(){
  int s,w;
  scanf("%d%d",&s,&w);
  if(s>w)printf("safe");
  else printf("unsafe");
        


Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected declaration or statement at end of input
    6 |   else printf("unsafe");
      |   ^~~~
Language: C

include<stdio.h>
int main(){
  int s,w;
  scanf("%d%d",&s,&w);
  if(s>w)printf("safe");
  else printf("unsafe");
        


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

int main(){
  int s,w;
  scanf("%d%d",&s,&w);
  if(s>w)printf("safe");
  else printf("unsafe");
        

Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d",&s,&w);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d",&s,&w);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:10: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    4 |   if(s>w)printf("safe");
      |          ^~~~~~
main.c:4:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:4:10: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:4:10: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:8: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    5 |   else printf("unsafe");
      |        ^~~~~~
main.c:5:8: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: error: expected declaration or statement at end of input
    5 |   else printf("unsafe");
      |   ^~~~
Language: Java

import java.util.Scanner;

public class SheepAndWolves {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        System.out.println("S＝");
        int S = Integer.parseInt(scan.next());
        System.out.println("W＝");
        int W = Integer.parseInt(scan.next());

        if (S <= W) {
            System.out.println("safe");
        } else {
            System.out.println("unsafe");
        }
    }
}


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

import Scanner;

class SheepAndWolves {
    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(Sysytem.in);
        System.out.println("S＝");
        int S = scanner.next();
        System.out.println("W＝");
        int W = scanner.next();

        if (S <= W) {
            System.out.println("safe");
        } else {
            System.out.println("unsafe");
        }
    }
}

Compiler output:
Main.java:1: error: '.' expected
import Scanner;
              ^
1 error
Language: Java

class SheepAndWolves {
    public static void main(String[] args) {
        
        Scanner scanner = new Scanner(Sysytem.in);
        System.out.println("S＝");
        int S = scanner.next();
        System.out.println("W＝");
        int W = scanner.next();

        if (S <= W) {
            System.out.println("safe");
        } else {
            System.out.println("unsafe");
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(Sysytem.in);
        ^
  symbol:   class Scanner
  location: class SheepAndWolves
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(Sysytem.in);
                              ^
  symbol:   class Scanner
  location: class SheepAndWolves
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(Sysytem.in);
                                      ^
  symbol:   variable Sysytem
  location: class SheepAndWolves
3 errors
Language: C

#include <cstdio> 
#include <cstdlib> 
#include <cmath> 
#include <cstring> 
#include <climits> 
#include <cfloat> 
#include <map> 
#include <utility> 
#include <set> 
#include <iostream> 
#include <memory> 
#include <string> 
#include <vector> 
#include <algorithm> 
#include <functional> 
#include <sstream> 
#include <complex> 
#include <stack> 
#include <queue> 
#include <numeric>
#include <cassert>

#define FOR(i, min, max) for (int i = (min); i < (max); ++i) 
#define FORE(i, min, max) for (int i = (min); i <= (max); ++i) 
#define REP(i, n) for (int i = 0; i < (n); ++i) 
#define REPV(vec, i) for (int i = 0; i < (int)(vec.size()); ++i) 
#define FOR_EACH(vec, it) for (typeof((vec).begin()) it = (vec).begin(); it != (vec).end(); ++it)

using namespace std; 
static const double EPS = 1e-12; 
typedef long long ll; 

template<typename T>
vector<T> getVector(int N) {
    vector<T> v(N);
    REP(i, N) cin >> v[i];
    return v;
}

int main(void)
{
    int S, W;
    cin >> S >> W;
    if (S <= W)
        cout << "unsafe" << endl;
    else
        cout << "safe" << endl;
    return 0;
}


Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include <iostream>

int main(void)
{
  int s,w;
  std::cin >> s >> w;
  if(s <= w){
    std::cout << "unsafe" << std::endl;
  }else{
   	std::cout << "safe" << std::endl; 
  }
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |   return;
      |   ^~~~~~
Language: C++

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

int main() {
  double A,B,C,D;
 cin>>A>>B>>C>>D;
 double X=ceil(C/D),Y=ceil(A/D);
  if(X<=Y){
    cout<<"Yes"<<endl;}
    else if{
      cout<<"No"<<endl;
    }
  }






Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected '(' before '{' token
   10 |     else if{
      |            ^
      |            (
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,N) for(int i = 0;i < (int)(N);i++)
int main(){
int s,w;
  string ans="safe";
  if(w>=s) ans="unsafe"
    cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before 'cout'
    9 |   if(w>=s) ans="unsafe"
      |                        ^
      |                        ;
   10 |     cout<<ans<<endl;
      |     ~~~~
Language: C

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

 
int main() {
    int S,W;
    cin >> S >> W;
    if (W>=S) { cout << "unsafe" << endl; }
    else { cout << "safe" << endl; }    
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

Select Code
#include<stdio.h>
int main(){
int S,W;
scanf("%d%d",&S,&W);
if(W>=S){
printf("unsafe\n");
}else{
printf("safe\n");
}
return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'Select'
    1 | Select Code
      | ^~~~~~
main.c:1:12: error: expected ';' before 'typedef'
    1 | Select Code
      |            ^
      |            ;
Language: C

#include<stdio.h>
int main(){
int S,W;
scanf("%d",&S&W);
if(W>=S){
printf("unsafe\n");
}else{
printf("safe\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:14: error: invalid operands to binary & (have 'int *' and 'int')
    4 | scanf("%d",&S&W);
      |            ~~^
      |            |
      |            int *
Language: C++

string sheepAndWolf(int sh, int wl) {
    string retrunValue{ "unsafe" };
    if (sh > wl) retrunValue = "safe";

    return retrunValue;
}

int main() {
    int sheep, wolf;
    cin >> sheep;
    cin >> wolf;

    cout << sheepAndWolf(sheep, wolf) << endl;
    return 0;
}

Compiler output:
a.cc:1:1: error: 'string' does not name a type
    1 | string sheepAndWolf(int sh, int wl) {
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin >> sheep;
      |     ^~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << sheepAndWolf(sheep, wolf) << endl;
      |     ^~~~
a.cc:13:13: error: 'sheepAndWolf' was not declared in this scope
   13 |     cout << sheepAndWolf(sheep, wolf) << endl;
      |             ^~~~~~~~~~~~
a.cc:13:42: error: 'endl' was not declared in this scope
   13 |     cout << sheepAndWolf(sheep, wolf) << endl;
      |                                          ^~~~
Language: C++

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

int main {
    ll s,w;
    cin>>s>>w;
    if(w>=s) cout<<"unsafe"<<endl;
    else cout<< "safe" <<endl;
    return 0;
}


Compiler output:
a.cc:5:5: error: cannot declare '::main' to be a global variable
    5 | int main {
      |     ^~~~
a.cc:6:8: error: expected primary-expression before 's'
    6 |     ll s,w;
      |        ^
a.cc:6:8: error: expected '}' before 's'
a.cc:5:10: note: to match this '{'
    5 | int main {
      |          ^
a.cc:7:5: error: 'cin' does not name a type
    7 |     cin>>s>>w;
      |     ^~~
a.cc:8:5: error: expected unqualified-id before 'if'
    8 |     if(w>=s) cout<<"unsafe"<<endl;
      |     ^~
a.cc:9:5: error: expected unqualified-id before 'else'
    9 |     else cout<< "safe" <<endl;
      |     ^~~~
a.cc:10:5: error: expected unqualified-id before 'return'
   10 |     return 0;
      |     ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: Java

import java.util.Scanner;

public class A {

    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        String[] in = s.nextLine().split(" ");
        int S = Integer.parseInt(in[0]);
        int W = Integer.parseInt(in[1]);

        if (W >= S) {
            System.out.println("unsafe");
        } else {
            System.out.println("safe");
        }
    }
}


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