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

#include <iostream>
#include <unordered_set>
#include <cstdint>
#include <vector>
#include <sstream>
#include <string>
#include <climits>
#include <set>
#include <array>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <numeric>
#include <map>
#include <utility>
using namespace std;

int main()
{
    int s, w;
    cin >> s >> w;
    if (w >= s)
        cout << "unsafe";
    else cout << "safe";
}#include <iostream>
#include <unordered_set>
#include <cstdint>
#include <vector>
#include <sstream>
#include <string>
#include <climits>
#include <set>
#include <array>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <numeric>
#include <map>
#include <utility>
using namespace std;

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

Compiler output:
a.cc:25:2: error: stray '#' in program
   25 | }#include <iostream>
      |  ^
a.cc:25:3: error: 'include' does not name a type
   25 | }#include <iostream>
      |   ^~~~~~~
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main()
      |     ^~~~
a.cc:18:5: note: 'int main()' previously defined here
   18 | int main()
      |     ^~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(s>=w)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:7:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(s>=w)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:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   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<stdio.h>
signed main(){
    int w,s;
    scanf("%d%d",&w,&s);
    if(w=>s)
        printf("unsafe");
    else
        printf("safe");
}


Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected expression before '>' token
    5 |     if(w=>s)
      |          ^
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: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;
      |               ^
Language: C++

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

int main(){
  int n,m;cin>>n>>m;
  if(n>m)cout<<"safe\n";
  else cout<<"unsafe\n";
  return 0;
}

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

#include<stdio.h>

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


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

#include <stdio.h>
int main (){
 int a,b,c,d,i,f=0;
 scanf("%d %d %d %d",&a,&b,&c,&d);
 for(i=0,f!=101,i++;){
  a-=d;
  c-=b;
  if(a<=0){
   printf("No");
   f=101;
  }
  if(c<=0){
   printf("Yes");
   f=101;
  }
 }
}

Compiler output:
main.c: In function 'main':
main.c:5:21: error: expected expression before ')' token
    5 |  for(i=0,f!=101,i++;){
      |                     ^
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:17: error: expected ';' before '}' token
    6 |   printf("safe")
      |                 ^
      |                 ;
    7 |   }
      |   ~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:8:9: error: expected expression before '=' token
    8 |   if(s<==w)
      |         ^
Language: C

#include<stdio.h>
int main(void){
  int s,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:14:11: error: expected ';' before '}' token
   14 |   return 0
      |           ^
      |           ;
   15 | }
      | ~
Language: C

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


Compiler output:
main.c:8:6: error: expected identifier or '(' before 'else'
    8 |     }else{
      |      ^~~~
main.c:11:5: error: expected identifier or '(' before 'return'
   11 |     return 0;
      |     ^~~~~~
main.c:12:1: error: expected identifier or '(' before '}' token
   12 | }
      | ^
Language: C

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

void main(void)
{
  int s,m;
  scanf("%d",&s);
  scanf("%d",&m);
  
  if(s>m){
    printf("safe\n");
  }
  esle{
    puts("unsafe");
  }
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'esle' undeclared (first use in this function)
   13 |   esle{
      |   ^~~~
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:7: error: expected ';' before '{' token
   13 |   esle{
      |       ^
      |       ;
Language: C

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

void main(void)
{
  int s,m;
  scanf("%d",&s);
  scanf("%d",&m);
  
  if(s>m){
    printf("safe\n");
  }
  esle{
    puts("unsafe")
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: 'esle' undeclared (first use in this function)
   13 |   esle{
      |   ^~~~
main.c:13:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:7: error: expected ';' before '{' token
   13 |   esle{
      |       ^
      |       ;
main.c:15:1: error: expected declaration or statement at end of input
   15 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:5:13: error: invalid operands to binary & (have 'char *' and 'int')
    5 | scanf ("%d" &s); scanf("%d" &w);
      |        ~~~~ ^
      |        |
      |        char *
main.c:5:29: error: invalid operands to binary & (have 'char *' and 'int')
    5 | scanf ("%d" &s); scanf("%d" &w);
      |                        ~~~~ ^
      |                        |
      |                        char *
main.c:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("unsafe");
      |     ^~~~~
      |     printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     print("unsafe");
      |     ^~~~~
      |     printf
Language: C

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:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C++

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


Compiler output:
a.cc: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;
#define MOD 1000000007
#define ll long long
#define ull unsigned long long
#define si set <ll>
#define vi vector <ll>
#define popcount(x) __builtin_popcountll(x)
#define mii map <ll,ll>
#define vpi vector <pair <ll,ll> >
#define sz(c) (int)c.size()
#define fr first
#define ll long long
#define fastio ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define sc second
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define mem0(a) memset(a,0,sizeof(a))
#define rep(i,a,n) for( ll i=a ; i<n ; i++)
#define ld long double
#define rall(a) (a).rbegin(),(a).rend()

ll power(ll b,ll e,ll m)
{
  if(e==0) return 1;
  if(e&1) return b*power(b*b%m,e/2,m)%m;
  return power(b*b%m,e/2,m);
}
ll power( ll b, ll e)
{
  if(e==0) return 1;
  if(e&1) return b*power(b*b,e/2);
  return power(b*b,e/2);
}  
bool isPowerOfTwo(ll x)
{
    // x will check if x == 0 and !(x & (x - 1)) will check if x is a power of 2 or not
    return (x && !(x & (x - 1)));
} 

void solve()
{
  ll x,y;
  cin>>x>>y;
  if(x<y) cout<<"unsafe"<<"\n";
  else cout<<"safe"
}


int main()       
{
  fastio
  ll tt=1;
  // cin>>tt;
  while(tt--)
  {
    solve();
    cout<<"\n";
  }
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:47:20: error: expected ';' before '}' token
   47 |   else cout<<"safe"
      |                    ^
      |                    ;
   48 | }
      | ~
Language: C++

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

int S, W;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'if'
    7 |     cin >> S >> W
      |                  ^
      |                  ;
    8 |     if (W > S) {
      |     ~~            
a.cc:10:7: error: 'else' without a previous 'if'
   10 |     } else {
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long       ll;
const ll  big =2e5+5;
pair <int,int> p[1005];
ll a[1005],b[1005];

int main()
{ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
ll 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:12:5: error: 'S' was not declared in this scope
   12 | cin>S>>W;
      |     ^
a.cc:12:8: error: 'W' was not declared in this scope
   12 | cin>S>>W;
      |        ^
Language: C

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

    int n, m;
    cin >> m >> n;
    if (n >= m)
        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>
#include<algorithm>
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:10:22: error: expected ';' before '}' token
   10 |        cout<<"unsafe"
      |                      ^
      |                      ;
   11 |    }
      |    ~
Language: Java

import java.util.*;
 
public class Main{
  public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int count = 1;
		String[] str = new String[N];
		for(int i = 0;i < N;i++) {
			String x = sc.next();
			str[i] += x; 
		}
		for(int j = 0;j < N;j++) {
			if(str[0].equals(str[j]) == false) {
				count++;
		}
		System.out.println(count);
	}
}

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

import java.util.*;

public class Main{
		  public static void main(String[] args) {
				Scanner sc = new Scanner(System.in);
				int N = sc.nextInt();
				int count = 1;
				String[] str = new String[N];
				for(int i = 0;i < N;i++) {
					String x = sc.next();
					str[i] += x; 
				}
				for(int i = 0;i < N;i++) {
					if(str[0].equals(str[i]) == false) {
						count++;
				}
				System.out.println(count);
	}
}

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

import java.util.*;class Main{Scanner s=new Scanner(System.in);public static void main(String[] a){System.out.println(s.nextInt()<s.nextInt()*2?"unsafe":"safe");}}

Compiler output:
Main.java:1: error: non-static variable s cannot be referenced from a static context
import java.util.*;class Main{Scanner s=new Scanner(System.in);public static void main(String[] a){System.out.println(s.nextInt()<s.nextInt()*2?"unsafe":"safe");}}
                                                                                                                      ^
Main.java:1: error: non-static variable s cannot be referenced from a static context
import java.util.*;class Main{Scanner s=new Scanner(System.in);public static void main(String[] a){System.out.println(s.nextInt()<s.nextInt()*2?"unsafe":"safe");}}
                                                                                                                                  ^
2 errors
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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
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:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c:6:16: warning: missing terminating " character
    6 |         printf("unsafe:);
      |                ^
main.c:6:16: error: missing terminating " character
    6 |         printf("unsafe:);
      |                ^~~~~~~~~~
Language: C

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

int main() {
    int a,b;
    cin >> a >> b;
    cout << (a > b) ? "safe\n" : "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: C++

// 12/07/2020  @ 19:54:17
// *****************************************************************
// *****************************************************************
#include <bits/stdc++.h>
// *****************************************************************
// *****************************************************************
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); srand(chrono::high_resolution_clock::now().time_since_epoch().count());
#define fr(i,n) for(llu i=0;i<n;i++)
#define fl(j,a,b) for(llu j=a;j<=b;j++)
#define Pi 3.1415926535897932384626
#define mod 1e9+7
#define MID(a,b) ((a + b) >> 1)
#define MAX(a,b) ((a) > (b) ? (a): (b))
#define MIN(a,b) ((a) < (b) ? (a) :(b))
#define pb push_back
#define mp make_pair
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << endl
#define all(x) x.begin(), x.end()
#define vi vector<int>
#define vl vector<ll>
#define pi pair<int, int>
#define pl pair<ll, ll>
#define printer(a, n) fr(i,n) cout << a[i] << " ";
// *****************************************************************
// *****************************************************************
typedef long long unsigned int llu;
typedef long long int ll;
// *****************************************************************
// *****************************************************************
using namespace std;
// *****************************************************************
// *****************************************************************

                   // Dream it. Wish it. Do it.

                         // tannatsri //

              // Without tact you can learn nothing.

// *****************************************************************
// *****************************************************************
bool rev(ll a, ll b) {
    return a > b;
}
// *****************************************************************
void solution() {
	int n, k;
	cin >> n >> k;
	if(s > k) cout << "safe";
	else cout << "unsafe";
}
// *****************************************************************
int main() {
    IOS;
    // #ifndef ONLINE_JUDGE
        // freopen("C:/Users/Mr.Tanishq/Desktop/noc/input.txt", "r", stdin);
        // freopen("C:/Users/Mr.Tanishq/Desktop/noc/output.txt", "w", stdout);
        // freopen("C:/Users/Mr.Tanishq/Desktop/noc/error.txt", "w", stderr);
    // #endif
    // *****************************************************************
    // *****************************************************************
    int t = 1;
    // cin >> t;
    while(t--) {

       solution();
       cout << "\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solution()':
a.cc:50:12: error: 's' was not declared in this scope
   50 |         if(s > k) cout << "safe";
      |            ^
Language: C++

include<iostream>
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:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> s >> w;
      |     ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "unsafe";
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "safe";
      |         ^~~~
Language: C++

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

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:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> s >> s;
      |     ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "unsafe";
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "safe";
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int s;
    int w;
    cin >> s;
    cin >> w;
    if (s<w||s=w){
        cout << "unsafe";
    }
    else {
        cout << "safe";
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: lvalue required as left operand of assignment
    9 |     if (s<w||s=w){
      |         ~~~^~~
Language: Java

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

public class Multiple {
    public static void main(String[] args) {
        InputStream is = System.in;
        Scanner scanner = new Scanner(is);
        String s = scanner.nextLine();
        long [] mod = new long[2019];
        mod[0]++;
        scanner.close();

        long pow = 1L;
        long target = 0L;
        for (int i = 0; i < s.length(); i++) {
            target = (target + (s.charAt(s.length() - 1 - i) - '0') * pow) % 2019;
            mod[(int)target]++;
            pow = 10 * pow;
        }
        long sum = 0;
        for (int i = 0; i < mod.length; i++) {
            long l = mod[i];
            sum += (l * (l-1)) / 2;
        }
        System.out.println(sum);
    }
}

Compiler output:
Main.java:4: error: class Multiple is public, should be declared in a file named Multiple.java
public class Multiple {
       ^
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
  {
    cout<< "safe"<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
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;
    cout << (S / 2 =< W ? "unsafe" : "safe") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '<' token
    7 |     cout << (S / 2 =< W ? "unsafe" : "safe") << endl;
      |                     ^
Language: C++

#include <stdio.h>

int main() {
  int a, b;
scanf("%d", &a);
scanf("%d",&b);
if (b >= a)
printf("safe/n");
else
printf("unsafe\n");
return;
}

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

#include <bits/stdc++.h>
#include<string.h>
#define ll long long 
#include<vector>
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
int main(){
	IOS;
	int s,w;
	cin>>s>>w;
	if(w>=s)
	cout<<"unsafe";
	else
	cout<<"safe";

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected '}' at end of input
   14 |         cout<<"safe";
      |                      ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
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:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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


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

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

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

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

#include <iostream>
#include <string>
using namespace std;
int main(){
  
  int a,b; cin >> a >> b;
  if(a <= b){cout << "unsafe" << endl;}
  eles {cout << "safe" << endl;}
 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'eles' was not declared in this scope
    8 |   eles {cout << "safe" << endl;}
      |   ^~~~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected '}' before 'else'
    9 |         else{
      |         ^~~~
Language: C

#include<stdio.h>

int main(void)
{
	int s,w;
	scanf("%d %d",&s,&w);
	if(s<=w){
			printf("unsafe\n");
	else{
			printf("safe\n");
	}
	return 0+
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected '}' before 'else'
    9 |         else{
      |         ^~~~
main.c:13:1: error: expected expression before '}' token
   13 | }
      | ^
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:
a.cc: In function 'int main()':
a.cc:10:2: error: expected '}' at end of input
   10 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include<stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%d, &sheep);
      |         ^
main.c:8:9: error: expected expression before '%' token
    8 |   scanf(%d, &wolf);
      |         ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(void)
{
    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:12:33: error: expected ';' before '}' token
   12 |         cout << "unsafe" << endl
      |                                 ^
      |                                 ;
   13 |     }
      |     ~
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";
   eturn 0; 
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'eturn' was not declared in this scope; did you mean 'extern'?
   11 |    eturn 0;
      |    ^~~~~
      |    extern
Language: C++

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


Compiler output:
a.cc:10:11: warning: missing terminating " character
   10 |     cout<<"unsafe;
      |           ^
a.cc:10:11: error: missing terminating " character
   10 |     cout<<"unsafe;
      |           ^~~~~~~~
a.cc: In function 'int main()':
a.cc:11:4: error: expected primary-expression before 'return'
   11 |    return 0;
      |    ^~~~~~
Language: C++

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

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

#include <iostream>

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: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:7:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(w>=s) 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:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else 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;
    if(S<W){
      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>

int main(void)
{
  int a,b;
  
  scanf("%d",&a);
  scanf("%d",&b);
  
  if(a=<b)
  printf("unsafe");
  
  else 
    printf("safe");
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:8: error: expected expression before '<' token
   10 |   if(a=<b)
      |        ^
Language: C

#include <stdio.h>

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

}

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

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


Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'retrun' undeclared (first use in this function)
    8 |   retrun 0;
      |   ^~~~~~
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: expected ';' before numeric constant
    8 |   retrun 0;
      |         ^~
      |         ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:8: error: expected expression before '<' token
    8 |   if(s=<w){
      |        ^
Language: C

#include <stdio.h>
int main(void)
{
  int s,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:5:13: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d"&s);
      |         ~~~~^
      |         |
      |         char *
main.c:6:13: error: invalid operands to binary & (have 'char *' and 'int')
    6 |   scanf("%d"&w);
      |         ~~~~^
      |         |
      |         char *
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'retrun' undeclared (first use in this function)
    8 |   retrun 0;
      |   ^~~~~~
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: expected ';' before numeric constant
    8 |   retrun 0;
      |         ^~
      |         ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:10: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    6 |     puts('unsafe');
      |          ^~~~~~~~
main.c:6:10: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
    6 |     puts('unsafe');
      |          ^~~~~~~~
      |          |
      |          int
In file included from main.c:1:
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:7:13: warning: multi-character character constant [-Wmultichar]
    7 |   else puts('safe');
      |             ^~~~~~
main.c:7:13: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
    7 |   else puts('safe');
      |             ^~~~~~
      |             |
      |             int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:8:3: error: 'retrun' undeclared (first use in this function)
    8 |   retrun 0;
      |   ^~~~~~
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: expected ';' before numeric constant
    8 |   retrun 0;
      |         ^~
      |         ;
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:8:22: error: expected ';' before '}' token
    8 |     else cout<<"safe"
      |                      ^
      |                      ;
    9 | }
      | ~
Language: C


#include<stdio.h>

int main(void){

  int s;
  int r;

  scanf("%d\n",&s);
  scanf("%d\n",&r);



if(s>2r){
  printf("safe");

}else{
  printf("unsafe");
}
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:1: warning: large fixed-point constant implicitly truncated to fixed-point type [-Woverflow]
   14 | if(s>2r){
      | ^~
main.c:14:6: error: fixed-point types not supported for this target
   14 | if(s>2r){
      |      ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:10: error: 'safe' undeclared (first use in this function)
    8 |     puts(safe);
      |          ^~~~
main.c:8:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:10: error: 'unsafe' undeclared (first use in this function)
   10 |     puts(unsafe);
      |          ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:12: error: 'safe' undeclared (first use in this function)
    8 |     printf(safe);
      |            ^~~~
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:12: error: 'unsafe' undeclared (first use in this function)
   10 |     printf(unsafe);
      |            ^~~~~~
Language: Java

import java.io.*;
import java.util.*;
public class Main {
    public static void main(String[]args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try {
       String isSafe = "";
    
       int [] a = new int [2];
     
       
       String  lines = br.readLine();    
    
       String[] strs = lines.trim().split("\\s+");
      
       for (int i = 0; i < strs.length; i++) {
       a[i] = Integer.parseInt(strs[i]);
       }

       if(a[1]>=a[0]){
           isSafe = "unsafe";
       }
       else{
           isSafe = "safe";
       }
       System.out.println(isSafe);
    }catch (Exception e) {
    }
    }

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase 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 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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     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:7:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     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:5: 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:23: 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 <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: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:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     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:7:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     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:5: 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:23: 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<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: In function 'main':
main.c:5:21: error: invalid operands to binary & (have 'int *' and 'int')
    5 |      scanf("%d%d",&S&W);
      |                   ~~^
      |                   |
      |                   int *
Language: C

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

int* mallocint(int si)
{
    return (int*) malloc(si * sizeof(int));
}

int* inputint(int n)
{
    int *ans = mallocint(n);
    for( int i = 0; i < n; i++ ) cin >> ans[i];
    return ans;
}

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


    //printf("Execution Time: %.4lf sec\n", 1.0 * (clock() - ti) / CLOCKS_PER_SEC);
    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<stdio.h>
int main()
{
    int S , W ;
    scanf("%d%d", &S,&W) ;
    if(W>=S) {
        printf("unsafe\n");
     }
     else {
        ptintf("safe\n");
     }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'ptintf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |         ptintf("safe\n");
      |         ^~~~~~
      |         printf
Language: C++

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

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

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

// 問題の URL を書いておく
// 

#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <bitset>
#include <numeric>
using namespace std;

//#define ENABLE_PRINT

template<typename T>
T Input()
{
    T v;
    cin >> v;
    return v;
}

template<typename T>
vector<T> InputVector(int n)
{
    vector<T> v(n);
    for(int i = 0; i < n; ++i)
    {
        cin >> v[i];
    }
    return v;
}

template<typename T>
void InputArray(T* begin, int n)
{
    for(int i = 0; i < n; ++i)
    {
        cin >> begin[i];
    }
}

#if defined(ENABLE_PRINT)

#define Print(v) \
do {\
    cout << #v << ": " << v << endl; \
}while(0)

#define PrintVec(v) \
do {\
    for(int __i = 0; __i < v.size(); ++__i) \
    { \
        cout << #v << "[" << __i << "]: " << v[__i] << endl; \
    }\
}while(0)

#else

#define Print(v) ((void)0)
#define PrintVec(v) ((void)0)

#endif

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

int main(int, const char**)
{
    int s, w;
    cin >> s >> w;
    cout << (w >= s ? "unsafe" : "safe") << endl;
    return 0;
}


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

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

Compiler output:
a.cc:2:1: error: expected unqualified-id before '{' token
    2 | {
      | ^
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:7:26: error: expected expression before '%' token
    7 |       scanf("%d %d", &s, %w);
      |                          ^
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:7:21: error: expected expression before '%' token
    7 |   scanf("%d%d", &s, %w);
      |                     ^
Language: C

#include <stdio.h>
void battle(int t_attack, int my_hp); // 戦闘
int main() {
  int a, b, c, d; // 変数宣言
  scanf("%d%d%d%d", &a, &b, &c, &d); // 標準入力

  if ((a/d)>(c/d)||(a%d)>(c%d)) {
    printf("Yes");
  } else {
    printf("No");
  }

Compiler output:
main.c: In function 'main':
main.c:11:3: error: expected declaration or statement at end of input
   11 |   }
      |   ^
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;
	}
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> s >> w;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "unsafe" << endl;
      |                 ^~~~
a.cc:7:37: error: 'endl' was not declared in this scope
    7 |                 cout << "unsafe" << endl;
      |                                     ^~~~
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout << "safe" << endl;
      |                 ^~~~
a.cc:10:35: error: 'endl' was not declared in this scope
   10 |                 cout << "safe" << endl;
      |                                   ^~~~
Language: C

#include<stdio.h>

int Main(void){
    int S, W;

    scanf("%d", &S);
    scanf("%d", &W);

    if(S <= W){
        printf("unsafe");
    }else{
        printf("safe");
    }

    return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

#include<stdio.h>

int Main(void){
    int S, W;

    scanf("%d", &S);
    scanf("%d", &W);

    if(S <= W){
        printf("unsafe");
    }else{
        printf("safe");
    }

    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:6: error: class, interface, enum, or record expected
    scanf("%d", &S);
    ^
Main.java:7: error: class, interface, enum, or record expected
    scanf("%d", &W);
    ^
Main.java:9: error: class, interface, enum, or record expected
    if(S <= W){
    ^
Main.java:11: error: class, interface, enum, or record expected
    }else{
    ^
Main.java:13: error: class, interface, enum, or record expected
    }
    ^
Main.java:16: error: class, interface, enum, or record expected
}
^
8 errors
Language: Java

#include<stdio.h>

int main(void){
    int S, W;

    scanf("%d", &S);
    scanf("%d", &W);

    if(S <= W){
        printf("unsafe");
    }else{
        printf("safe");
    }

    return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:6: error: class, interface, enum, or record expected
    scanf("%d", &S);
    ^
Main.java:7: error: class, interface, enum, or record expected
    scanf("%d", &W);
    ^
Main.java:9: error: class, interface, enum, or record expected
    if(S <= W){
    ^
Main.java:11: error: class, interface, enum, or record expected
    }else{
    ^
Main.java:13: error: class, interface, enum, or record expected
    }
    ^
Main.java:16: error: class, interface, enum, or record expected
}
^
8 errors
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:6:28: error: expected ';' before 'endl'
    6 |   if(a<=b) cout << "unsafe" endl;
      |                            ^~~~~
      |                            ;