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

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

int main() {
  int X
  cin >> X;
  if (X>=30) {
    cout << "Yes" << endl;
    {
  else {
    cout << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> X;
      |   ^~~
a.cc:7:7: error: 'X' was not declared in this scope
    7 |   if (X>=30) {
      |       ^
a.cc:10:3: error: expected '}' before 'else'
   10 |   else {
      |   ^~~~
a.cc:9:5: note: to match this '{'
    9 |     {
      |     ^
a.cc:10:3: error: expected '}' before 'else'
   10 |   else {
      |   ^~~~
a.cc:7:14: note: to match this '{'
    7 |   if (X>=30) {
      |              ^
Language: C++

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

int main() {
  int X
  cin >> X;
  if X>=30
    cout << "Yes" << endl;
  else cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> X;
      |   ^~~
a.cc:7:6: error: expected '(' before 'X'
    7 |   if X>=30
      |      ^
      |      (
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else cout << "No" <<endl;
      |   ^~~~
Language: C++

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

int main() {
  cin >> X;
  if X>=30
    cout << "Yes" << endl;
  else cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'X' was not declared in this scope
    5 |   cin >> X;
      |          ^
a.cc:6:6: error: expected '(' before 'X'
    6 |   if X>=30
      |      ^
      |      (
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else cout << "No" <<endl;
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a;
  cin>>a;
  if(a>=30 &&)
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected primary-expression before ')' token
    7 |   if(a>=30 &&)
      |              ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a;
  cin>>a;
  if(a>=30 && a<=40)
    cout<<"Yes";
  else if(a>=-40 && <30)
    cout<<"No";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before '<' token
    9 |   else if(a>=-40 && <30)
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a;
  cin>>a;
  if(a>=30 && a<=40)
    cout<<"yes";
  else if(a>=-40 && <30)
    cout<<"no";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before '<' token
    9 |   else if(a>=-40 && <30)
      |                     ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a;
  cin>>a;
  if(a>=30)
    cout<<"yes";
  else 
    cout<<"no"
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'return'
   10 |     cout<<"no"
      |               ^
      |               ;
   11 |     return 0;
      |     ~~~~~~
Language: C

#include<iostream>
#include<string>
#include<algorithm>
#include<iomanip>
#include<cmath>
#include<vector>
#include<utility>
#include<map>
#define ll long long
const long double PI = acos(-1);
using namespace std;
void Weak_Man()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
}
int main()
{
	Weak_Man();
	ll x;
	cin >> x;
	if (x >= 30)
		cout << "Yes" << endl;
	else
		cout << "NO" << endl;

}

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

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

#define mx 500008

#define pii pair<int,int>
#define pi acos(-1.0)
#define pb push_back
#define ss second
#define ff first
typedef long long int ll;
///adjacent move
int fx[4]={0,+1,0,-1};
int fy[4]={+1,0,-1,0};
///knight
ll prime[mx];

vector<pii>v[mx];
int main()
{
    int t=1;
    //cin>>t;
    ll k;
    int c=0;
    while(t--){
        cin>>n;
        if(n<30) cout<<"No"<<endl;
        else cout<<"Yes"<<endl;
    }
}


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

fun main() {
    val n = readInt()
    println(if (n >= 30) "Yes" else "No")
}

fun readString() = readLine()!!
fun readStrings() = readString().split(" ")
fun readInt() = readString().toInt()
fun readLong() = readString().toLong()
fun readInts() = readStrings().map { it.toInt() }
fun readLongs() = readStrings().map { it.toLong() }


Compiler output:
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main() {
      | ^~~
a.cc:6:1: error: 'fun' does not name a type
    6 | fun readString() = readLine()!!
      | ^~~
a.cc:11:1: error: 'fun' does not name a type
   11 | fun readLongs() = readStrings().map { it.toLong() }
      | ^~~
Language: C++

#include <iostream>
#include <stdio.h>
int main()
{
  cin>>X;
  if(X>=30)
    cout<<"Yes";
  else
    cout<<"No";

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>>X;
      |   ^~~
      |   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:5:8: error: 'X' was not declared in this scope
    5 |   cin>>X;
      |        ^
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"Yes";
      |     ^~~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"No";
      |     ^~~~
      |     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:16: error: expected '}' at end of input
    9 |     cout<<"No";
      |                ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <stdio.h>

int main(void)
{
	int X
      scanf("%d",&X);
  if(X>=30)
    	printf("Yes\n");
  else
    printf("No\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |       scanf("%d",&X);
      |       ^~~~~
main.c:6:19: error: 'X' undeclared (first use in this function)
    6 |       scanf("%d",&X);
      |                   ^
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int n;
  cin >> n;
  if(n >= 30)
  {
    cout << "YES";
  }
  else
  {
    cout << "NO"
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before '}' token
   13 |     cout << "NO"
      |                 ^
      |                 ;
   14 |   }
      |   ~
Language: C++

#include <iostream>
int main()
{
  int n;
  cin >> n;
  if(n >= 30)
  {
    cout << "YES";
  }
  else
  {
    cout << "NO"
  }
  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 >> n;
      |   ^~~
      |   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 << "YES";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout << "NO"
      |     ^~~~
      |     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;

signed int main() {
  int n;
  cin >> n;
  cout<<(n>=30:"Yes":"No")<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ')' before ':' token
    7 |   cout<<(n>=30:"Yes":"No")<<endl;
      |         ~     ^
      |               )
Language: C++

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

signed int main() {
  cin >> n;
  cout<<(n>=30:"Yes":"No")<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    5 |   cin >> n;
      |          ^
      |          yn
a.cc:6:15: error: expected ')' before ':' token
    6 |   cout<<(n>=30:"Yes":"No")<<endl;
      |         ~     ^
      |               )
Language: C++

signed int main() {
  cin >> n;
  cout<<(n>=30:"Yes":"No")<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'cin' was not declared in this scope
    2 |   cin >> n;
      |   ^~~
a.cc:2:10: error: 'n' was not declared in this scope
    2 |   cin >> n;
      |          ^
a.cc:3:3: error: 'cout' was not declared in this scope
    3 |   cout<<(n>=30:"Yes":"No")<<endl;
      |   ^~~~
a.cc:3:15: error: expected ')' before ':' token
    3 |   cout<<(n>=30:"Yes":"No")<<endl;
      |         ~     ^
      |               )
Language: C++

signed int main() {
  cin>>n;
  cout<<(n>=30:"Yes":"No")<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'cin' was not declared in this scope
    2 |   cin>>n;
      |   ^~~
a.cc:2:8: error: 'n' was not declared in this scope
    2 |   cin>>n;
      |        ^
a.cc:3:3: error: 'cout' was not declared in this scope
    3 |   cout<<(n>=30:"Yes":"No")<<endl;
      |   ^~~~
a.cc:3:15: error: expected ')' before ':' token
    3 |   cout<<(n>=30:"Yes":"No")<<endl;
      |         ~     ^
      |               )
Language: C++

signed int main() {
   cin << n;
   cout<<(n>=30:"Yes":"No")<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:4: error: 'cin' was not declared in this scope
    2 |    cin << n;
      |    ^~~
a.cc:2:11: error: 'n' was not declared in this scope
    2 |    cin << n;
      |           ^
a.cc:3:4: error: 'cout' was not declared in this scope
    3 |    cout<<(n>=30:"Yes":"No")<<endl;
      |    ^~~~
a.cc:3:16: error: expected ')' before ':' token
    3 |    cout<<(n>=30:"Yes":"No")<<endl;
      |          ~     ^
      |                )
Language: C++

#include<iostream.h>

using namespace std;

int main ()
{
    int x;
    cin >> x;
    if (x>30)
    {
        cout << "Yes" ;
    }
    else
    {
        cout << "No";
    }
    return 0;
    
}

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

#include<bits/stdc++.h>

using namespace std;

int main()
{
     int X;
   cin >> X;
if(X>30) cout << Yes;
else cout << N0;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'Yes' was not declared in this scope
    9 | if(X>30) cout << Yes;
      |                  ^~~
a.cc:10:14: error: 'N0' was not declared in this scope; did you mean 'y0'?
   10 | else cout << N0;
      |              ^~
      |              y0
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    cin >> t;
    if(t>=30)
    {
        cout << "Yes"
    }
    else
    {
        cout << "No"
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before '}' token
    9 |         cout << "Yes"
      |                      ^
      |                      ;
   10 |     }
      |     ~                 
a.cc:13:21: error: expected ';' before '}' token
   13 |         cout << "No"
      |                     ^
      |                     ;
   14 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main()
{
  long long n;
  cin>>n;
  
  if(n >= 30)
  {
    cout<<"Yes";
  }
  else
  {
    cout<<"No';
  }
  
  return 0;
  
} 

Compiler output:
a.cc:15:11: warning: missing terminating " character
   15 |     cout<<"No';
      |           ^
a.cc:15:11: error: missing terminating " character
   15 |     cout<<"No';
      |           ^~~~~
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before '}' token
   16 |   }
      |   ^
Language: C

#include<bits/stdc++.h>
using namespace std;
#define pb push_back 
#define mp make_pair
#define F first
#define S second
#define endl '\n'
#define all(x) (x).begin(), (x).end()
#define FOR(i,n) for(int i=0;i<n;i++)
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define fast std::ios::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define print(a) for(auto x:a) cout<<x<<' ';cout<<endl;
#define printM(b) for(auto y:b) {print(y);}
#define printP(p) cout<<p.first<<' '<<p.second<<endl;
typedef long long int ll;
typedef unsigned long long int ull;
template <typename T> 
T cmax(T x, T y) 
{ 
   return (x > y)? x: y; 
} 

void solve()
{
  int n;
  cin>>n;
  
  
  if(n>=30)
  {
    cout<"Yes";
  }
  else
  {
    cout<<"No";
  }
}
int main()
{

  fast;
  int t=1;
//cin>>t;
  while(t--){

solve();
cout<<endl;
  }


  
  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 <bit/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	cout << (n >= 30 : 'Yes' : 'No') << "\n";
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int x;
  cin>>x;
  if(x>=30)
    cout<<"Yes";
  else
    cout<<"No";

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

#include<iostrem>

int main() {
  int x;
  std::cin >> x;
  if (x >= 30) {
    std::cout >> "Yes" >> std::endl;
  } else {
    std::cout >> "No" >> std::endl;
  }
}

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

#include<stdio.h>
int main() {
  int t;
  cin >> t;
  if(t >= 30) 
    cout << "YES" <<endl;
  else
    cout <<"NO" <<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> t;
  if(t >= 30) {
    cout <<"YES" <<endl;
  }
  else
    cout <<" NO" <<endl;
}

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

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

int main()
{
  	int x;
  cin >> x;
  if (x >= 30) cout << "Yes\n";
  else cout << "No\n";
	return 0;
}

Compiler output:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> x;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<bits/stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:16: error: 'cout' was not declared in this scope
    8 |   if (x >= 30) cout << "Yes\n";
      |                ^~~~
a.cc:8:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:8: error: 'cout' was not declared in this scope
    9 |   else cout << "No\n";
      |        ^~~~
a.cc:9:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <math>
#include <utility>
#include <tuple>
#include <map>
using namespace std;


int main() {
    int x;
    cin >> x;
    if (x >= 30) {
        cout << "Yes";
    }
    else {
        cout << "No";
    }
    return 0;
}

Compiler output:
a.cc:4:10: fatal error: math: No such file or directory
    4 | #include <math>
      |          ^~~~~~
compilation terminated.
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner;
        int X = sc.nextInt();
        System.out.println(X < 30 ? "No" : "Yes");
    }
}


Compiler output:
Main.java:5: error: '(' or '[' expected
        Scanner sc = new Scanner;
                                ^
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner;
        int X = new sc.nextInt();
        System.out.println(X < 30 ? "No" : "Yes");
    }
}

Compiler output:
Main.java:5: error: '(' or '[' expected
        Scanner sc = new Scanner;
                                ^
1 error
Language: Java

import java.util.*;
public class SolutionA{
public static void main (String[]args){
Scanner sc = new Scanner(System.in);
System.out.println("Enter current temperature")	;
int temp = sc.nextInt();
if(temp>=30){
 System.out.println("Yes")	; 
}
else {
 System.out.println("No")	; 
}  
}
}

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

import java.util.Scanner;

public class Solution {
    public static Scanner in = new Scanner(System.in);

    public static void main(String[] args) {
        int temperature = in.nextInt();
        System.out.println(temperature >= 30 ? "Yes" : "No");
    }
}

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

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        if(n>=30) System.out.println("yes");
        else System.out.println("no");
        in.close();
    }
}

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

std::cout << (X >= 30 ? "Yes" : "No");

Compiler output:
a.cc:1:6: error: 'cout' in namespace 'std' does not name a type
    1 | std::cout << (X >= 30 ? "Yes" : "No");
      |      ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | std::cout << (X >= 30 ? "Yes" : "No");
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin>>x;
  if(x>=30)
    cout<<"Yes\n";
  else
    cout<<"No\n";

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected '}' at end of input
    9 |     cout<<"No\n";
      |                  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using naemspace std;
int main()
{
    int x;
    cin>>x;
    if(x>=30)
        cout<<"Yes";
    else
        cout<<"No";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'naemspace'
    2 | using naemspace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>x;
      |     ^~~
      |     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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         cout<<"Yes";
      |         ^~~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<"No";
      |         ^~~~
      |         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 <stdio.h>

int main()
{
  int x;
  scanf("%d",&x);
    if(x>=30)
      printf("Yes");
    else
      printf("No");

Compiler output:
main.c: In function 'main':
main.c:10:7: error: expected declaration or statement at end of input
   10 |       printf("No");
      |       ^~~~~~
Language: C++

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

int main(){
  int x;
  cin>>x;
  if(40>=x&&x>=30){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
}

Compiler output:
a.cc:2:17: error: 'srd' is not a namespace-name
    2 | using namespace srd;
      |                 ^~~
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>>x;
      |   ^~~
      |   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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"Yes"<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     cout<<"Yes"<<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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"No"<<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:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |     cout<<"No"<<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>
using namespace std;
int main(){
  int x;
  cin >> x;
  if( x>=30 ){
    cout << "yes";
  }
  else {
    cout << "no";
  }
  
  return0;
}

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

#include<iostream>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x>=30){
    cout << "yes";
  }
  else {
    cout << "no";
  }
  
  return0;
}

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

#include<iostream>
using namespace std;

int main(){
  int x;
  cin >> x;
  if(x>=30){
    cout << Yes << endl;
  }
    else{
      cout << No << endl;
    }
}

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

#include<iostream>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x>=30){
    cout << Yes << endl;
  }
    else{
      cout << No << endl;
    }
  }

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

#include<iostream>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x>=30){
    cout << "yes";
  }
  else if{
    cout << "no";
  }
  
  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected '(' before '{' token
    9 |   else if{
      |          ^
      |          (
a.cc:13:3: error: 'return0' was not declared in this scope
   13 |   return0;
      |   ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x>=30){
    cout << "yes";
  }
  else if{
    cout << "no";
  }

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

#include<iostream>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x>=30){
    cout << Yes << endl;
    else{
      cout << No << endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'Yes' was not declared in this scope
    7 |     cout << Yes << endl;
      |             ^~~
a.cc:8:5: error: expected '}' before 'else'
    8 |     else{
      |     ^~~~
a.cc:6:12: note: to match this '{'
    6 |   if(x>=30){
      |            ^
a.cc:9:15: error: 'No' was not declared in this scope
    9 |       cout << No << endl;
      |               ^~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x=<30){
    cout << Yes << endl;
    else{
      cout << No << endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected primary-expression before '<' token
    6 |   if(x=<30){
      |        ^
a.cc:7:13: error: 'Yes' was not declared in this scope
    7 |     cout << Yes << endl;
      |             ^~~
a.cc:8:5: error: expected '}' before 'else'
    8 |     else{
      |     ^~~~
a.cc:6:12: note: to match this '{'
    6 |   if(x=<30){
      |            ^
a.cc:9:15: error: 'No' was not declared in this scope
    9 |       cout << No << endl;
      |               ^~
Language: C++

#include<iostresam>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x=<30){
    cout << Yes << endl;
    else{
      cout << No << endl;
    }
  }

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

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

int main(){
  int X;
  cin >> X;
  if(X => 30){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '>' token
    7 |   if(X => 30){
      |         ^
Language: C++

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

int main(){
  int X;
  cin >> X;
  cout << (X => 30 ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '>' token
    7 |   cout << (X => 30 ? "Yes" : "No") << endl;
      |               ^
Language: C++

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

int main(){
  int X;
  cin >> X;
  cout << (X => 30 > "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected primary-expression before '>' token
    7 |   cout << (X => 30 > "Yes" : "No") << endl;
      |               ^
a.cc:7:27: error: expected ')' before ':' token
    7 |   cout << (X => 30 > "Yes" : "No") << endl;
      |           ~               ^~
      |                           )
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
    int n;
    cin>>n;
    if(n>=30){
     cout<<yes;
    }
    else{
     cout<<no;
    }
   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'yes' was not declared in this scope
    8 |      cout<<yes;
      |            ^~~
a.cc:11:12: error: 'no' was not declared in this scope; did you mean 'n'?
   11 |      cout<<no;
      |            ^~
      |            n
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main() {
    int n;
    cin>>n;
    if(n>=30){
     cout<<yes;
    }
    else{
     cout<<no:
    }
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'yes' was not declared in this scope
    8 |      cout<<yes;
      |            ^~~
a.cc:11:12: error: 'no' was not declared in this scope; did you mean 'n'?
   11 |      cout<<no:
      |            ^~
      |            n
Language: C

#include<bits/stdc++.h>
#include <vector>
using namespace std;
#define vi vector<int>
#define pb push_back
#define p push
#define sll stack<long long>
#define qll queue<long long>
#define vll vector<long long>
#define fori(n) for(int i=0;i<n;i++)
#define forj(n) for(int j=0;j<n;j++)
#define fork(n) for(int k=0;k<n;k++)
#define fori1(n) for(int i=1;i<n;i++)
#define f(i,a,b) for(int i=a;i<=b;i++)
#define ll long long
#define pi 3.14159265358979323
#include <math.h>
#define yn(n) if(n)cout<<"yes\n";else cout<<"no\n";
#define Yn(n) if(n)cout<<"Yes\n";else cout<<"No\n";
#define YN(n) if(n)cout<<"YES\n";else cout<<"NO\n";
#define mp   make_pair 
ll gcd(ll a, ll b){if(b==0)return a;return gcd(b, a%b);}
ll lcm(ll a, ll b){return a*b/gcd(a, b);}


ll sum = 0;
int md(int n){
	if(n>0)return n;
	else return -n;
}
string str1,str2;
void solve(){
	ll n;cin>>n;
	Yn(n>=30);
}


int main(){
#ifndef ONLINE_JUDGE
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
#endif
 
     cin.tie(0);
    ios::sync_with_stdio(false);
   
	
	int t;
	t=1;
	//cin >> t;
	while(t--){
		solve();
	}	
	//cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC << "ms\n";

}

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 n;
  cin>>n;
  if(n >= 30){
    printf("Yes);
           }
           else{
             printf("No")}
           return 0;
           }

Compiler output:
a.cc:7:12: warning: missing terminating " character
    7 |     printf("Yes);
      |            ^
a.cc:7:12: error: missing terminating " character
    7 |     printf("Yes);
      |            ^~~~~~
a.cc: In function 'int main()':
a.cc:8:12: error: expected primary-expression before '}' token
    8 |            }
      |            ^
a.cc:10:26: error: expected ';' before '}' token
   10 |              printf("No")}
      |                          ^
      |                          ;
Language: Java

import java.util.*;
import java.io.*;

public class A {
	public static void main(String[] args) throws IOException {
		setIO();
		
		int X = ni();
		out.println(X >= 30 ? "YES" : "NO");

		f.close();
		out.close();
	}

	static final int MOD = 1000000007;

	static BufferedReader f;
	static PrintWriter out;

	static int ni(StringTokenizer st) {
		return Integer.parseInt(st.nextToken());
	}

	static int ni() throws IOException {
		return Integer.parseInt(f.readLine());
	}

	static StringTokenizer nl() throws IOException {
		return new StringTokenizer(f.readLine());
	}

	static int[] nia(int N) throws IOException {
		StringTokenizer st = nl();
		int[] A = new int[N];
		for (int i = 0; i < N; i++)
			A[i] = ni(st);
		return A;
	}

	static void setIO(String s) throws IOException {
		f = new BufferedReader(new FileReader(s + ".in"));
		out = new PrintWriter(new FileWriter(s + ".out"));
	}

	static void setIO() {
		f = (new BufferedReader(new InputStreamReader(System.in)));
		out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));
	}
}


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

#include<stdio.h>
int main(){
int x;
scan("%d",&x);
if(x>=30)
    print("Yes");
else
   print("No");
}
  

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scan'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | scan("%d",&x);
      | ^~~~
      | scanf
main.c:6:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |     print("Yes");
      |     ^~~~~
      |     printf
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String args[]){
        int x;
        Scanner inp= new Scanner(System.in);
        x=inp.nextInt();
        if(x>=30){
            System.out.println("Yes");
        }
        else
            System.out.println("No");
    }
}


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

#include<bits/stdc++.h>

int main(){
	int T;
  	cin >> T;
  	if(T >= 30){
     	cout << "Yes\n"; 
    }else{
     	cout << "No\n"; 
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> T;
      |         ^~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout << "Yes\n";
      |         ^~~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout << "No\n";
      |         ^~~~
      |         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 namesapce std;
int main()
{
    int x;
    cin>>x;
    if(x>=30)
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;
    }
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>x;
      |     ^~~
      |     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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout<<"Yes"<<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:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout<<"Yes"<<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:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         cout<<"No"<<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:13:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |         cout<<"No"<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

int main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	ll x; cin >> x;
	cout << (x >= 30 ? "YES" : "NO") << '\n';
}


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 X;
  if (X < 30) {
    cout << "No" << endl;
  }
  else {
    cout << "Yes" << 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:6:5: error: 'cout' was not declared in this scope
    6 |     cout << "No" << endl;
      |     ^~~~
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |     cout << "No" << endl;
      |                     ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |                      ^~~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    if(Atcoder.getValue() >= 30)
      System.out.println("yes");
    else
      System.out.print("no");
  }
}
public class Atcoder {
    public static int getValue(){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        sc.close();
        return n;
    }
    public static int[] getValues(int size){
        Scanner sc = new Scanner(System.in);
        int[] values = new int[size];
        for(int i = 0; i < size; i++){
            values[i] = sc.nextInt();
        }
        return values;
    }
}

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

int main(){
    int n;
	cin>>n;
    if (n>=30) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>n;
      |         ^~~
a.cc:4:16: error: 'cout' was not declared in this scope
    4 |     if (n>=30) cout<<"Yes"<<endl;
      |                ^~~~
a.cc:4:29: error: 'endl' was not declared in this scope
    4 |     if (n>=30) cout<<"Yes"<<endl;
      |                             ^~~~
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |   else cout<<"No"<<endl;
      |        ^~~~
a.cc:5:20: error: 'endl' was not declared in this scope
    5 |   else cout<<"No"<<endl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    cin>>n;
    if(n=>30)cout<<"YES";
    else cout<<"NO"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '>' token
    9 |     if(n=>30)cout<<"YES";
      |          ^
a.cc:10:20: error: expected ';' before '}' token
   10 |     else cout<<"NO"
      |                    ^
      |                    ;
   11 | }
      | ~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    cin>>n;
    if(n>30)cout<<"YES";
    else cout<<"NO"
}


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

import java.util.*;

public class HelloWorld {

    final static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        System.out.println(A());
    }

    public static String A() {
        int input = sc.nextInt();
        if(input >= 30){
            return "Yes";
        }
        else{
            return "No";
        }
    }
}


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

import java.util.Scanner;

public class Mainb {

	public static void main(String[] args) {
		 Scanner sc = new Scanner(System.in);
		  int ans = sc.nextInt();
		  if(ans>=30){
		    System.out.println("Yes");
		  }
		  else{
		    System.out.println("No");
		  }
	}

}

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

import java.util.Scanner;

public static void main(String[] args) {
  Scanner sc = new Scanner(System.in);
  int ans = sc.nextInt();
  if(ans>=30){
    System.out.println("Yes");
  }
  else{
    System.out.println("No");
  }
}

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<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod=1000000007;
#define f(i,a,b) for(i=a;i<b;i++)
#define rf(i,a,b) for(i=a;i>=b;i--)
#define sf(i,s) for(i=0;s[i]!='\0';i++)
#define watch(x) cout << (#x) << " is " << (x) << "\n"
#define inf 1e18
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define tr(v,i) for(typeof(v).begin() i = v.begin(); i != v.end(); i++)
#define pre(v,x) (v.find(x) != v.end())
#define vpre(v,x) (find(all(v),x) != v.end())
#define gcd(x,y) __gcd(x,y)
#define bc(x) __builtin_popcountll(x)
//cin.ignore(1, '\n');
ll power(ll a, ll b)
{
    if (b == 0)
        return 1;
    if (b == 1)
        return a;
    else
    {
        ll t = power(a, b / 2);
        if (b % 2 == 0)
            return t*t;
        else
            return t*t*a;
    }
}
void solve()
{
 cin>>x;
 if(x>=30)
    cout<<"Yes\n";
 else
    cout<<"No\n";
}
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll t = 1;
    //cin >> t;
    while (t--)
    {
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:39:7: error: 'x' was not declared in this scope
   39 |  cin>>x;
      |       ^
Language: C

#include <iostream>
#include <string>

int main() {
  std::string str;
  std::cin >> str;
  int N = std::stoi(str);

  if (N >= 30) {
    std::cout << "Yes";
  } else {
    std::cout << "No";
  }

  return 0;
}

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

#include <iostream>
using namespace std;

int main() {
  char str;
  sin >> str;
  if (int(str) >= 30) {
    cout << "Yes"
  } else {
    cout << "No"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'sin' was not declared in this scope
    6 |   sin >> str;
      |   ^~~
a.cc:8:18: error: expected ';' before '}' token
    8 |     cout << "Yes"
      |                  ^
      |                  ;
    9 |   } else {
      |   ~               
a.cc:10:17: error: expected ';' before '}' token
   10 |     cout << "No"
      |                 ^
      |                 ;
   11 |   }
      |   ~
Language: Java

import java.util.*;
class Solution{
public static void main(String[], args){
 Scanner sc= new Scanner(System.in);
int T= sc.nextInt();
if(T<30){
System.out.println("No");}
else{System.out.println("Yes");}
}

}


Compiler output:
Main.java:3: error: <identifier> expected
public static void main(String[], args){
                                ^
Main.java:3: error: <identifier> expected
public static void main(String[], args){
                                      ^
2 errors
Language: C++

x = int(input())
if x >= 30:
  print('Yes')
else: 
  print('No')

Compiler output:
a.cc:3:9: warning: multi-character character constant [-Wmultichar]
    3 |   print('Yes')
      |         ^~~~~
a.cc:5:9: warning: multi-character character constant [-Wmultichar]
    5 |   print('No')
      |         ^~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x = int(input())
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll mod=1e9+7;
int main()
{
    int x;
    cin>>x;
    if(x>=30)
        printf("Yes\n");
    else
        prinft("No\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'prinft' was not declared in this scope; did you mean 'printf'?
   12 |         prinft("No\n");
      |         ^~~~~~
      |         printf
Language: C++

#include<stdio.h>
int main(void){
  int X;
  cin>>X
  if (X>=30)
  { cout<<"yes";}
  else;
  {cout<<"no";}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>X
      |   ^~~
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else;
      |   ^~~~
a.cc:8:4: error: 'cout' was not declared in this scope
    8 |   {cout<<"no";}
      |    ^~~~
Language: C++

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

int main(){
long long k;
  cin>>k;
  long long mod;
  mod=7;
  int count =1;
  for(int i=0;i<10000;i++){

    if(i==9999){
      cout<<-1<<endl;
    }

  else if(mod==k){
cout<<count<<endl;
      break;
    }
    else if(mod>k){
mod-=k;
    }
   mod*=10;
    mod+=7;
    count++;
  }
}
}

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