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

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

long long modinv(long long a, long long m) {
    long long b = m, u = 1, v = 0;
    while (b) {
        long long t = a / b;
        a -= t * b; swap(a, b);
        u -= t * v; swap(u, v);
    }
    u %= m;
    if (u < 0) u += m;
    return u;
}

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


Compiler output:
a.cc: In function 'long long int modinv(long long int, long long int)':
a.cc:8:21: error: 'swap' was not declared in this scope
    8 |         a -= t * b; swap(a, b);
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:18:3: error: 'cin' was not declared in this scope
   18 |   cin >> s >> w;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << "unsafe" << endl;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:25: error: 'endl' was not declared in this scope
   20 |     cout << "unsafe" << endl;
      |                         ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << "safe" << endl;
      |     ^~~~
a.cc:22:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:23: error: 'endl' was not declared in this scope
   22 |     cout << "safe" << endl;
      |                       ^~~~
a.cc:22:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    
    Scanner scan;
    int sheep;
    int wolves;
    
    sheep = 0;
    wolves = 0;
    
    scan = new Scanner(String.in);
    sheep = scan.nextInt();
    wolves = scan.nextInt();
    
    if (sheep > wloves){
      System.out.println("safe");
    }else {
      System.out.println("unsafe");
    }
      
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
    scan = new Scanner(String.in);
                             ^
  symbol:   variable in
  location: class String
Main.java:17: error: cannot find symbol
    if (sheep > wloves){
                ^
  symbol:   variable wloves
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
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:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main() {
    ll n, m;
    cin >> n >> m;
    if(n <= m){
        cout << "unsafe" << endl;
    }else{
        cout << "safe" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll n, m;
      |     ^~
a.cc:6:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     cin >> n >> m;
      |            ^
      |            yn
a.cc:6:17: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |     cin >> n >> m;
      |                 ^
      |                 tm
Language: C++

#Include<iostream>
using namespace std;
main()
{

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<iostream>
      |  ^~~~~~~
      |  include
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:11: error: 'cin' was not declared in this scope
    8 |           cin >> s;
      |           ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include<iostream>
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<"unsafe";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:10: error: 'cout' was not declared in this scope
   14 |          cout<<"safe";
      |          ^~~~
a.cc:14:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:4:7: error: expected expression before '%' token
    4 | scanf(%d%d\n,S,W);
      |       ^
main.c:4:11: error: stray '\' in program
    4 | scanf(%d%d\n,S,W);
      |           ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'If' [-Wimplicit-function-declaration]
    5 | If(W>=S){
      | ^~
main.c:5:9: error: expected ';' before '{' token
    5 | If(W>=S){
      |         ^
      |         ;
Language: C++

#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#include<cstdlib>
#include<cmath>
#include<numeric>
#include<iomanip>
using namespace std;
using ll =long long;
const int mod = 1000000007;
class mint {
	long long x;
public:
	mint(long long x = 0) : x((x% mod + mod) % mod) {}
	mint operator-() const {
		return mint(-x);
	}
	mint& operator+=(const mint & a) {
		if ((x += a.x) >= mod) x -= mod;
		return *this;
	}
	mint & operator-=(const mint & a) {
		if ((x += mod - a.x) >= mod) x -= mod;
		return *this;
	}
	mint & operator*=(const  mint & a) {
		(x *= a.x) %= mod;
		return *this;
	}
	mint operator+(const mint & a) const {
		mint res(*this);
		return res += a;
	}
	mint operator-(const mint & a) const {
		mint res(*this);
		return res -= a;
	}
	mint operator*(const mint & a) const {
		mint res(*this);
		return res *= a;
	}
	mint pow(ll t) const {
		if (!t) return 1;
		mint a = pow(t >> 1);
		a *= a;
		if (t & 1) a *= *this;
		return a;
	}
	// for prime mod
	mint inv() const {
		return pow(mod - 2);
	}
	mint& operator/=(const mint & a) {
		return (*this) *= a.inv();
	}
	mint operator/(const mint & a) const {
		mint res(*this);
		return res /= a;
	}

	friend ostream& operator<<(ostream & os, const mint & m) {
		os << m.x;
		retrun os;
	}
};

int main() {
	ll S, W;
	cin >> S >> W;
	S > W ? cout << "safe" : cout << "unsafe";
}

Compiler output:
a.cc: In function 'std::ostream& operator<<(std::ostream&, const mint&)':
a.cc:66:17: error: 'retrun' was not declared in this scope
   66 |                 retrun os;
      |                 ^~~~~~
a.cc:67:9: warning: no return statement in function returning non-void [-Wreturn-type]
   67 |         }
      |         ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before '}' token
   13 |   return 0
      |           ^
      |           ;
   14 | }
      | ~
Language: C++

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:18: error: expected '}' at end of input
   10 |     cout<<"safe";
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <bits/stdc++.h>

using namespace std;

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

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>
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:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> S >> W;
      |   ^~~
a.cc:8:14: error: 'cout' was not declared in this scope
    8 |   if (S > W) cout << "safe"<< endl;
      |              ^~~~
a.cc:8:31: error: 'endl' was not declared in this scope
    8 |   if (S > W) cout << "safe"<< endl;
      |                               ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << "unsafe" << endl;
      |        ^~~~
a.cc:9:28: error: 'endl' was not declared in this scope
    9 |   else cout << "unsafe" << endl;
      |                            ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:5: error: expected '}' before 'else'
   10 |     else
      |     ^~~~
main.c: At top level:
main.c:13:9: error: expected identifier or '(' before 'return'
   13 |         return 0;
      |         ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
   14 | }
      | ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:12: error: expected '(' before 'S'
    8 |         if S > W{
      |            ^
      |            (
Language: C

include<stdio.h>

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


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

#include<iostream>
#include<string>
#include<math.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:7:1: error: 'Int' does not name a type; did you mean 'int'?
    7 | Int main(){
      | ^~~
      | int
Language: C++

#include<iostream>
#include<string>
#include<math.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:7:1: error: 'Int' does not name a type; did you mean 'int'?
    7 | Int main(){
      | ^~~
      | int
Language: C++

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

int main() {
  
  int A, B;
  Cin A >> B;
  
  if (A <= B) {
  cout << "unsafe" << endl;
  }
  else {
  cout << "safe" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'Cin' was not declared in this scope; did you mean 'sin'?
    7 |   Cin A >> B;
      |   ^~~
      |   sin
Language: C++

#include<vector>
#include<string>

int main() {
	int S, W;
	std::cin >> S >> W;

	if (W >= S) {
		std::cout << "unsafe" << std::endl;
	}
	else {
		std::cout << "safe" << std::endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'cin' is not a member of 'std'
    6 |         std::cin >> S >> W;
      |              ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | 
a.cc:9:22: error: 'cout' is not a member of 'std'
    9 |                 std::cout << "unsafe" << std::endl;
      |                      ^~~~
a.cc:9:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:47: error: 'endl' is not a member of 'std'
    9 |                 std::cout << "unsafe" << std::endl;
      |                                               ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | 
a.cc:12:22: error: 'cout' is not a member of 'std'
   12 |                 std::cout << "safe" << std::endl;
      |                      ^~~~
a.cc:12:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:45: error: 'endl' is not a member of 'std'
   12 |                 std::cout << "safe" << std::endl;
      |                                             ^~~~
a.cc:12:45: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<vector>
#include<string>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: 'cout' is not a member of 'std'
    7 |                 std::cout << "unsafe" << std::endl;
      |                      ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | 
a.cc:7:47: error: 'endl' is not a member of 'std'
    7 |                 std::cout << "unsafe" << std::endl;
      |                                               ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | 
a.cc:10:22: error: 'cout' is not a member of 'std'
   10 |                 std::cout << "safe" << std::endl;
      |                      ^~~~
a.cc:10:22: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:45: error: 'endl' is not a member of 'std'
   10 |                 std::cout << "safe" << std::endl;
      |                                             ^~~~
a.cc:10:45: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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

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 <iostream>
using namespace std;

//sorry :c
int main () {
  int s, w;
  cin >> s >> w;
  if (w >= s) {
    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

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: 'cin' undeclared (first use in this function)
    3 |   cin >> s >> w;
      |   ^~~
main.c:3:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: 'cout' undeclared (first use in this function)
    5 |     cout << "unsafe";
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
int main()
{
long long 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:1: 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:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout<<"unsafe";
      | ^~~~
      | 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:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | 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;

int main() {
  int s,w;
  cin >> s >> w;

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

}


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 <iostream>
using namespace std;
 
int main() {
  int S, W;
  cin >> S >> W;
  
  if (S <= W){
    cout << "unsafe" <<endl;
  }else{
    cout << "safe" <<emdl;
  }
}


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

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


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


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


Compiler output:
main.c: In function 'main':
main.c:4:3: error: 'cin' undeclared (first use in this function)
    4 |   cin >> S >> W >>endl;
      |   ^~~
main.c:4:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:19: error: 'endl' undeclared (first use in this function)
    4 |   cin >> S >> W >>endl;
      |                   ^~~~
main.c:7:5: error: 'cout' undeclared (first use in this function)
    7 |     cout << "unsafe" <<endl;
      |     ^~~~
main.c:9:22: error: 'emdl' undeclared (first use in this function)
    9 |     cout << "safe" <<emdl;
      |                      ^~~~
Language: C

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


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>
using namespace std;
 
int main() {
  int S, W;
  cin >> S >> W >>endl;
  
  if (S < W){
    cout << "safe" <<endl;
  }else{
    cout << "unsafe" <<emdl;
  }
  return 0;
}


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>
using namespace std;
 
int main() {
  int S, W;
  cin >> S >> W >>endl;
  
  if (S < W){
    cout << "safe" <<endl;
  }else{
    cout << "unsafe" <<emdl;
  }
}

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>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

using namespace std;
using namespace __gnu_pbds;

#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define fbo find_by_order
#define ook order_of_key

typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<int> vi;
typedef long double ld;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;



int main(){
    ios_base::sync_with_stdio(0); cin.tie(0);
    string s;
    cin>>s;
    ll n=s.length();
    int dp[2019][n];
    for(int i=0;i<2019;i++){
        for(ll j=0;j<n;j++){
            dp[i][j]=0;
        }
    }
    int k=s[0]-'0';
    dp[k][0]=1;
    for(ll j=1;j<n;j++){
        int x=s[j]-'0';
        dp[x][j]+=1;
        for(int i=0;i<2019;i++){
            if(dp[i][j-1]!=0){
                ll sx=(i*10)%2019+x;
                sx=sx%2019;
                dp[sx][j]+=dp[i][j-1];
            }
        }
    }a
    ll ans=0;
    for(ll i=0;i<n;i++){
        ans+=dp[0][i];
    }
    cout<<ans<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:6: error: 'a' was not declared in this scope
   46 |     }a
      |      ^
a.cc:49:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   49 |         ans+=dp[0][i];
      |         ^~~
      |         abs
a.cc:51:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   51 |     cout<<ans<<endl;
      |           ^~~
      |           abs
Language: C++

10 10#include <bits/stdc++.h>
#define F first
#define S second
#define pb push_back
#define mp make_pair
using namespace std;
typedef long long int ll;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif

    int s, w;
    cin >> s >> w;
    if (w >= s) puts("unsafe");
    else puts("safe");
}




Compiler output:
a.cc:1:6: error: stray '#' in program
    1 | 10 10#include <bits/stdc++.h>
      |      ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 10 10#include <bits/stdc++.h>
      | ^~
a.cc: In function 'int main()':
a.cc:10:5: error: 'ios_base' has not been declared
   10 |     ios_base::sync_with_stdio(false);
      |     ^~~~~~~~
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin.tie(NULL);
      |     ^~~
a.cc:11:13: error: 'NULL' was not declared in this scope
   11 |     cin.tie(NULL);
      |             ^~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | 10 10#include <bits/stdc++.h>
a.cc:14:31: error: 'stdin' was not declared in this scope
   14 |     freopen("input.txt", "r", stdin);
      |                               ^~~~~
a.cc:1:1: note: 'stdin' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | 10 10#include <bits/stdc++.h>
a.cc:14:5: error: 'freopen' was not declared in this scope
   14 |     freopen("input.txt", "r", stdin);
      |     ^~~~~~~
a.cc:15:32: error: 'stdout' was not declared in this scope
   15 |     freopen("output.txt", "w", stdout);
      |                                ^~~~~~
a.cc:15:32: note: 'stdout' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:20:17: error: 'puts' was not declared in this scope
   20 |     if (w >= s) puts("unsafe");
      |                 ^~~~
a.cc:21:10: error: 'puts' was not declared in this scope
   21 |     else puts("safe");
      |          ^~~~
Language: C++

#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'S' was not declared in this scope
    7 |   cin >> S >> W;
      |          ^
a.cc:7:15: error: 'W' was not declared in this scope
    7 |   cin >> S >> W;
      |               ^
Language: C++

#include <iostream>
#include <memory.h>
#include <algorithm>
#include <vector>
using namespace std;


int main()
{
	int s,w;
	cin >> s >> w;

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

	

Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: expected '}' at end of input
   16 |                 cout <<"safe";
      |                               ^
a.cc:9:1: note: to match this '{'
    9 | {
      | ^
Language: C++

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

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <iostream>
      | ^~~~~
Language: C++

#include <iostream>

int 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:5:3: 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:5: 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:25: 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:5: 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:23: 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 <iostream>
int main()
{
  int S,W;
  for(int i=0; i<3;i++)
  {
    std::cin >> S >> W;
    if (S<=W)
    {
      std::cout << "safe";
    }
    else
    {
      cout << "unsafe" ;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |       cout << "unsafe" ;
      |       ^~~~
      |       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
      |                  ^~~~
Language: C

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

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

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

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

public class Main {							
	public static void main(String[] args) {
		int sheep = Integer.parseInt(args[0]);
		int wolf = Integer.parseInt(args[1]);

		if (sheep > 100 || sheep < 0) {
			return;
		}
		if (wolf > 100 || wolf < 0) {
			return;
		}

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


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

import java.util.Scanner;

	public static void main(String[] args) {

		Scanner scnr = new Scanner(System.in);
		int numSheep = scnr.nextInt();
		int numWolf = scnr.nextInt();

		if (numSheep > numWolf) {
			System.out.print("safe");
		}
		else if (numSheep < numWolf) {
			System.out.print("unsafe");
		}
		else {
			System.out.print("unsafe");
		}
	}



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

#include<cstdio>
#include<iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected initializer before '.' token
    8 |         int S.W;
      |              ^
a.cc:9:24: error: 'S' was not declared in this scope
    9 |         scanf("%d %d",&S,&W);
      |                        ^
a.cc:9:27: error: 'W' was not declared in this scope
    9 |         scanf("%d %d",&S,&W);
      |                           ^
Language: Java

import java.util.Scanner;

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

		Scanner scnr = new Scanner(System.in);

		System.out.print("How many sheep? Enter a whole number between 1 and 100.");
		int numSheep = scnr.nextInt();

		System.out.print("How many wolves? Enter a whole number between 1 and 100.");
		int numWolf = scnr.nextInt();

		if (numSheep > numWolf) {
			System.out.print("safe");
		}
		else if (numSheep < numWolf) {
			System.out.print("unsafe");
		}
		else {
			System.out.print("unsafe");
		}
	}
}


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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:12: error: 'cin' was not declared in this scope
    4 |   int s,t; cin >> s >> t;
      |            ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << "safe";
      |     ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "unsafe";
      |     ^~~~
Language: Java


public class Abc164 {
	public static void main(String[] args) {
	int sheep = Integer.parseInt(args[0]);
	int wolf =  Integer.parseInt(args[1]);


	if(sheep >100 || sheep < 0) {
		return;
	}
	if(wolf >100 || wolf < 0) {
		return;
	}

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

	}

}


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


public class Abc164 {
	public static void main(String args[]) {
	int sheep = Integer.parseInt(args[0]);
	int wolf =  Integer.parseInt(args[1]);


	if(sheep >100 || sheep < 0) {
		return;
	}
	if(wolf >100 || wolf < 0) {
		return;
	}

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

	}

}


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

#include <iostream> 
#include <string> 
#include <vector>
#include <algorithm>
#include <utility>
#include <tuple>
#include <cstdint>
#include <cstdio> 
#include <map> 
#include <queue> 
#include <set> 
#include <stack> 
#include <deque> 
#include <unordered_map> 
#include <unordered_set> 
#include <bitset> 
#include <cctype> 

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

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



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

package atCoder426;

import java.util.Scanner;

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

		Scanner scnr = new Scanner(System.in);

		System.out.print("How many sheep? Enter a whole number between 1 and 100.");
		int numSheep = scnr.nextInt();

		System.out.print("How many wolves? Enter a whole number between 1 and 100.");
		int numWolf = scnr.nextInt();

		if (numSheep > numWolf) {
			System.out.print("safe");
		}
		else if (numSheep < numWolf) {
			System.out.print("unsafe");
		}
		else {
			System.out.print("unsafe");
		}
	}
}


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

package atCoder426;

import java.util.Scanner;

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

		Scanner scnr = new Scanner(System.in);

		System.out.print("How many sheep? Enter a whole number between 1 and 100.");
		int numSheep = scnr.nextInt();

		System.out.print("How many wolves? Enter a whole number between 1 and 100.");
		int numWolf = scnr.nextInt();

		if (numSheep > numWolf) {
			System.out.print("safe");
		}
		else if (numSheep < numWolf) {
			System.out.print("unsafe");
		}
		else {
			System.out.print("unsafe");
		}
	}
}


Compiler output:
Main.java:5: error: modifier private not allowed here
private class sheepAndWolf {
        ^
1 error
Language: Java

package atCoder426;

import java.util.Scanner;

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

		Scanner scnr = new Scanner(System.in);

		System.out.print("How many sheep? Enter a whole number between 1 and 100.");
		int numSheep = scnr.nextInt();

		System.out.print("How many wolves? Enter a whole number between 1 and 100.");
		int numWolf = scnr.nextInt();

		if (numSheep > numWolf) {
			System.out.print("safe");
		}
		else if (numSheep < numWolf) {
			System.out.print("unsafe");
		}
		else {
			System.out.print("unsafe");
		}
	}
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: expected '(' before 'cout'
    9 |     cout << "safe" << 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 if
    cout << "safe" << endl;
}

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

#include <bits/stdc++.h>
#define ll long long
#define double long double
#define rep(i,n) for(int i=0;i<(n);i++)
#define REP(i,n) for(int i=1;i<=(n);i++)
#define mod (ll)(1e9+7)
#define inf (ll)(3e18+7)
#define pi (double) acos(-1)
#define P pair<int,int>
#define PiP pair<int,pair<int,int>>
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
using namespace std;

int main() {
    0
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:6: error: expected ';' before '}' token
   16 |     0
      |      ^
      |      ;
   17 | }
      | ~
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; 
  return 0;
  
  }

Compiler output:
a.cc:2:1: error: 'Using' does not name a type
    2 | Using  namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: 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:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |  if(w>=s) 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:6:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |  if(w>=s) 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout<<"safe"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout<<"safe"<<endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

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;
  cun >> s >> w;
  if(s<=w){
    cout << "unsafe" << endl;
  }else{
    cout << "safe" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cun' was not declared in this scope
    5 |   cun >> s >> w;
      |   ^~~
a.cc:10:4: error: expected '}' at end of input
   10 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | 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:4:8: error: 'S' was not declared in this scope
    4 | cin >> S >> W;
      |        ^
a.cc:4:13: error: 'W' was not declared in this scope
    4 | cin >> S >> W;
      |             ^
a.cc:6:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 | 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:6:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 | 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:9:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 | 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:9:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 | 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>
using 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: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '<' token
    7 |   if(s =< w) {
      |         ^
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;
  }
  return 0;
}

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

z
import java.util.Scanner;

public class Main {

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
z
^
1 error
Language: C++

#include<iostream>
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:7:11: error: 'unsafe' was not declared in this scope; did you mean 'unshare'?
    7 |     cout<<unsafe<<endl;
      |           ^~~~~~
      |           unshare
a.cc:9:11: error: 'safe' was not declared in this scope
    9 |     cout<<safe<<endl;
      |           ^~~~
Language: C

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

int main()
{
	int s,w;
	cin>>s>>w;
	printf("%s\n",s<=w?"unsafe":"safe");
	return 0;
  //kopipe
}


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

ss=(int)S;
ww=(int)W;
if(S>w/2){
  printf('unsafe')
}else{
  printf('safe')
}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | ss=(int)S;
      | ^~
main.c:1:1: error: type defaults to 'int' in declaration of 'ss' [-Wimplicit-int]
main.c:1:9: error: 'S' undeclared here (not in a function)
    1 | ss=(int)S;
      |         ^
main.c:2:1: warning: data definition has no type or storage class
    2 | ww=(int)W;
      | ^~
main.c:2:1: error: type defaults to 'int' in declaration of 'ww' [-Wimplicit-int]
main.c:2:9: error: 'W' undeclared here (not in a function)
    2 | ww=(int)W;
      |         ^
main.c:3:1: error: expected identifier or '(' before 'if'
    3 | if(S>w/2){
      | ^~
main.c:4:10: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    4 |   printf('unsafe')
      |          ^~~~~~~~
main.c:5:2: error: expected identifier or '(' before 'else'
    5 | }else{
      |  ^~~~
main.c:6:10: warning: multi-character character constant [-Wmultichar]
    6 |   printf('safe')
      |          ^~~~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int s, w;
	cin>>s>>w;
	if(w>=s)
	cout<<"unsafe"<<endl;
	else if(s>w)
	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>
using namespace std;

#define pb push_back
#define fi first
#define se second
typedef long long ll;

int main()
{
	ios_base::sync_with_stdio(false); cin.tie(NULL);

	int s, w;
	cin >> s >> w;
	if (s <= w)
		cout << "un";
	cout << "safe\n";
}


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


	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		System.out.print("S ");

		System.out.print("W");
		int s = sc.nextInt();
		int w = sc.nextInt();
		
		if(s > w) {
			System.out.println("safe");
		}else {
			System.out.println("unsafe");
		}
		
		

	}

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

package Sample;
import java.util.Scanner;

public class Sheepand {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		System.out.print("S ");

		System.out.print("W");
		int s = sc.nextInt();
		int w = sc.nextInt();
		
		if(s > w) {
			System.out.println("safe");
		}else {
			System.out.println("unsafe");
		}
		
		

	}

}


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

#include <iostream>
using namespace std;
int main(){
  
  cin>>s>>w;
  if(w<s)cout<<"safe";
  else cout<<"unsafe";
  return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s>>w;
      |        ^
a.cc:5:11: error: 'w' was not declared in this scope
    5 |   cin>>s>>w;
      |           ^
Language: C++

using namespace std;
int main() {

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'cin' was not declared in this scope
    6 |          cin>> S>> W;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:28: error: 'cout' was not declared in this scope
    9 |                            cout<<"unsafe";
      |                            ^~~~
a.cc:9:28: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:28: error: 'cout' was not declared in this scope
   12 |                            cout<<"safe";
      |                            ^~~~
a.cc:12:28: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {

     int S,W;  
     cout<<"numberofsheep"<<"numberofwolves";
	 cin>> S>> W;
	 
	           if(W>=S)
			   cout<<"unsafe";
			   
			   else
			   cout<<"safe";       
                   

}

}


Compiler output:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^