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

#include"iostream"
using namespace std;
int main()
{
int n;
int d;
  cin>>n>>d;
  int x[n];
  int y[n];
  int cnt=0;
  for(int i=0;i<n;i++)
  {
    cin>>x[i]>>y[i];
    if(x[i]*x[i]+y[i]*y[i]=d*d)
      cnt++;
    
  }
  cout<<cnt;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: lvalue required as left operand of assignment
   14 |     if(x[i]*x[i]+y[i]*y[i]=d*d)
      |        ~~~~~~~~~^~~~~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected primary-expression before '<' token
   10 | if(g=<29){
      |      ^
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:4:5: error: cannot declare '::main' to be a global variable
    4 | int main
      |     ^~~~
a.cc:6:1: error: expected primary-expression before 'int'
    6 | int n;
      | ^~~
a.cc:6:1: error: expected '}' before 'int'
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:7:1: error: 'cin' does not name a type
    7 | cin>> n;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(n>=30)
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else
      | ^~~~
a.cc:12:1: error: expected unqualified-id before 'return'
   12 | return 0;
      | ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

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

#include<bits/stdc++.h>
int main()
{
  int n;
  cin>>n;
  if(n>29)
    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 /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: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
      |                  ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'x'
    7 |   if x>=30
      |      ^
      |      (
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else
      |   ^~~~
a.cc:10:15: error: expected ';' before 'return'
   10 |     cout<<"no"
      |               ^
      |               ;
   11 |         return 0;
      |         ~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<stack>
#include<algorithm>
#include<vector>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#include<unordered_map>
#include<unordered_set>
#define ll long long
using namespace std;
const int INF=0x3f3f3f3f;
const double pi=acos(-1.0),eps=1e-8;
const int maxn=1e5+10;
const ll mod=1e9+7;

int main()
{

    ll a;
    cin>>a;
    if(a>=30)
    {
        printf("Yes\n")
    }
    else
    {
        printf("No\n");
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:24: error: expected ';' before '}' token
   27 |         printf("Yes\n")
      |                        ^
      |                        ;
   28 |     }
      |     ~
Language: Java

import java.util.*;
public class A{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    System.out.println((n>=30?"Yes":"No"));
  }
}

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

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

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >> X;
      | ^~~
Language: C++

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

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

Compiler output:
a.cc:11:29: error: empty character constant
   11 |                 cout<<"No\n"''
      |                             ^~
a.cc: In function 'int main()':
a.cc:11:29: error: expected ';' before '\x0'
   11 |                 cout<<"No\n"''
      |                             ^~
      |                             ;
Language: C++

    #include iostream
     
    typedef long long ll;
     
    int main()
    {
       
        int x;
        std::cin>>x;
        if (x>=30)
        {
            std::cout<<"Yes"<<"\n";
        }
        else
        {
            std::cout<<"No"<<"\n";
        }
     
        
       
        
           
       return 0;
    }

Compiler output:
a.cc:1:14: error: #include expects "FILENAME" or <FILENAME>
    1 |     #include iostream
      |              ^~~~~~~~
a.cc: In function 'int main()':
a.cc:9:14: error: 'cin' is not a member of 'std'
    9 |         std::cin>>x;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 |     #include iostream
a.cc:12:18: error: 'cout' is not a member of 'std'
   12 |             std::cout<<"Yes"<<"\n";
      |                  ^~~~
a.cc:12:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:18: error: 'cout' is not a member of 'std'
   16 |             std::cout<<"No"<<"\n";
      |                  ^~~~
a.cc:16:18: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include <stdio.h>
 
int main() {
	//code
	int x;
	scanf("%d",&x);
	if(x==30)
	printf('Yes')
	else
	printf('No')
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: warning: multi-character character constant [-Wmultichar]
    8 |         printf('Yes')
      |                ^~~~~
main.c:8:16: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |         printf('Yes')
      |                ^~~~~
      |                |
      |                int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:22: error: expected ';' before 'else'
    8 |         printf('Yes')
      |                      ^
      |                      ;
    9 |         else
      |         ~~~~          
main.c:10:16: warning: multi-character character constant [-Wmultichar]
   10 |         printf('No')
      |                ^~~~
Language: C++

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

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

  return 0;
}

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

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

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


Compiler output:
a.cc:9:17: error: extended character 　 is not valid in an identifier
    9 |     else cout <<　"No";
      |                 ^
a.cc: In function 'int main()':
a.cc:8:30: error: expected ';' before 'else'
    8 |     if(X >= 30) cout << "Yes"
      |                              ^
      |                              ;
    9 |     else cout <<　"No";
      |     ~~~~
Language: C++

// Created by  Ambesh kumar
#include "bits/stdc++.h"

//I already compile this file in my computer system to save the time
//if get the compiler error then you should change this header to
// #include "bits/stdc++.h"  ---> #include <bits/stdc++.h>

using namespace std;
#define gc getchar_unlocked
#define fo(i,n) for(i=0;i<n;i++)
#define Fo(i,k,n) for(i=k;k<n?i<n:i>n;k<n?i+=1:i-=1)
#define ll long long
#define si(x)	scanf("%d",&x)
#define sl(x)	scanf("%lld",&x)
#define ss(s)	scanf("%s",s)
#define pi(x)	printf("%d\n",x)
#define pl(x)	printf("%lld\n",x)
#define ps(s)	printf("%s\n",s)
#define deb(x) cout << #x << "=" << x << endl
#define deb2(x, y) cout << #x << "=" << x << "," << #y << "=" << y << endl
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define all(x) x.begin(), x.end()
#define clr(x) memset(x, 0, sizeof(x))
#define sortall(x) sort(all(x))
#define tr(it, a) for(auto it = a.begin(); it != a.end(); it++)
#define PI 3.1415926535897932384626
typedef pair<int, int>	pii;
typedef pair<ll, ll>	pl;
typedef vector<int>		vi;
typedef vector<ll>		vl;
typedef vector<pii>		vpii;
typedef vector<pl>		vpl;
typedef vector<vi>		vvi;
typedef vector<vl>		vvl;
mt19937_64 rang(chrono::high_resolution_clock::now().time_since_epoch().count());
int rng(int lim) {
	uniform_int_distribution<int> uid(0,lim-1);
	return uid(rang);
}
int mpow(int base, int exp); 
void ipgraph(int n, int m);
void dfs(int u, int par);

const int mod = 1000000007;
const int N = 3e5, M = N;
//=================================================================================================================================//

vi g[N];
int a[N];

void solve() {
  int i, j, n, m;

  cin>>n;

  if(n<30)
  	cout<<"Yes" <<'\n' ;
  else
  	cout<<"No" <<'\n' ;
}







int main() {
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
    srand(chrono::high_resolution_clock::now().time_since_epoch().count());

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

    return 0;
}





z

Compiler output:
a.cc:88:1: error: 'z' does not name a type
   88 | z
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>X;
      |         ^~~
a.cc:7:7: error: 'cout' was not declared in this scope
    7 |       cout<<"Yes";
      |       ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout<<"No";
      |       ^~~~
Language: Java

import java.io.*;


public class Solution {
	public static void main(String args[])throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.parseInt(br.readLine());
		if(n >= 30) System.out.println("Yes");
		else System.out.println("No");
	}
}


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

#include <bits/stdc++.h>
typedef long long int  ll;
const int INF = INT_MAX;
#define pb push_back
#define mp make_pair
#define first X
#define second Y
#define nl cout<<"\n";   
using namespace std;   

int main() {   
    ios::sync_with_stdio(0);   
    cin.tie(0);   
     
    
    int t;cin>>t;
    if(t>=30){cout<<"Yes";}
    else{cout<<"No;}
	       
}   
        

Compiler output:
a.cc:18:16: warning: missing terminating " character
   18 |     else{cout<<"No;}
      |                ^
a.cc:18:16: error: missing terminating " character
   18 |     else{cout<<"No;}
      |                ^~~~~
a.cc: In function 'int main()':
a.cc:20:1: error: expected primary-expression before '}' token
   20 | }
      | ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:11:12: note: to match this '{'
   11 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
int main()
{
	int X;
  	cin>>X;
  	if(X>=30)
      cout<<"Yes";
  	else
      cout<<"No";
  	return 0;
}


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

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

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


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

#include <iostream>
using namespace std;

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

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

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

int main() {
  int A;
  cin >> A;
  if(A > 29){
    cout << "Yes" endl;
  }
else{
cout << "No" << endl;
}
 
}


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

#include < iostream > 

using namespace std;

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


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

#include<iostream>
#include<assert.h>
#include<vector>

#define ios ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define write freopen("in.txt","r",stdin); freopen("out.txt","w",stdout); 

using namespace std;
assert(x==i);
void solve()
{
int n;
cin>>n;
if(n>=30)
	cout<<"YES\n";
else
	cout<<"NO\n";
}
int main() 
{
ios;
//write;
int tc=1;
//cin>>tc;
for(int i=1;i<=tc;i++)
{
//cout<<"Case #"<<i<<": ";
solve();
}
return 0;
}


Compiler output:
In file included from a.cc:2:
a.cc:9:1: error: expected unqualified-id before 'static_cast'
    9 | assert(x==i);
      | ^~~~~~
a.cc:9:1: error: expected ')' before 'static_cast'
    9 | assert(x==i);
      | ^~~~~~
Language: C++

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

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
  	cin>>X;
  	if(X<30)
    {
      cout<<"No";
    }
  	else
    {
      cout<<"Yes";
    }
    return 0;
}

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

#include<iostream>
 using namespace std;

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


Compiler output:
a.cc:11:14: warning: missing terminating " character
   11 |         cot<<"No;
      |              ^
a.cc:11:14: error: missing terminating " character
   11 |         cot<<"No;
      |              ^~~~
a.cc: In function 'int main()':
a.cc:11:9: error: 'cot' was not declared in this scope
   11 |         cot<<"No;
      |         ^~~
a.cc:12:5: error: expected primary-expression before 'return'
   12 |     return 0;
      |     ^~~~~~
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(){
  
  if(x>=30){
    cout<< Yes <<endl;
  }
  else {
    cout<< No <<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'x' was not declared in this scope
    6 |   if(x>=30){
      |      ^
a.cc:7:12: error: 'Yes' was not declared in this scope
    7 |     cout<< Yes <<endl;
      |            ^~~
a.cc:10:12: error: 'No' was not declared in this scope
   10 |     cout<< No <<endl;
      |            ^~
Language: C++

#include iostream
using namespace std;
typedef long long ll;

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

    
   
    
       
   return 0;
}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include iostream
      |          ^~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>x;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include iostream
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout<<"Yes"<<"\n";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<"No"<<"\n";
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using ll = long long;
ll GetDigit(ll num){ return log10(num)+1; } //numの桁数を求める

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'X' was not declared in this scope
    9 |     cin >> X;
      |            ^
Language: C

#include <stdio.h>

int main() {
	//code
	int x;
	scanf(%d,x);
	if(x==30)
	printf('Yes')
	else
	printf('No')
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected expression before '%' token
    6 |         scanf(%d,x);
      |               ^
main.c:8:16: warning: multi-character character constant [-Wmultichar]
    8 |         printf('Yes')
      |                ^~~~~
main.c:8:16: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
    8 |         printf('Yes')
      |                ^~~~~
      |                |
      |                int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:22: error: expected ';' before 'else'
    8 |         printf('Yes')
      |                      ^
      |                      ;
    9 |         else
      |         ~~~~          
main.c:10:16: warning: multi-character character constant [-Wmultichar]
   10 |         printf('No')
      |                ^~~~
Language: C++

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

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

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

int main()
{ 
     int x;
     cin>>x;
    if(x>=30)
    cout<<"Yes";
    else 
    cout<<"No";
    
    
    
    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:8:6: error: 'cin' was not declared in this scope
    8 |      cin>>x;
      |      ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"Yes";
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"No";
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:22: 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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:12:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     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 <stdio.h>

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

Compiler output:
main.c:3:10: error: expected declaration specifiers or '...' before '}' token
    3 | int main(}{
      |          ^
main.c:3:10: error: expected ';', ',' or ')' before '}' token
main.c:3:11: error: expected identifier or '(' before '{' token
    3 | int main(}{
      |           ^
Language: C++

#include <iostream>
using namespace std;

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


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

#include<bits.stdc++.h>
int main()
{
	int X;
  	cin>>X;
  	if(X>=30)
      cout<<"Yes";
  	else
      cout<<"No";
  	return 0;
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'x' was not declared in this scope
    7 |     if(x>=30) cout<<"Yes"<<endl;
      |        ^
Language: C++

#include<bits/stdc++.h>
 
#define IOS ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define int long long
#define rep(i,a,b)    for(int i=a;i<b;i++)
#define repn(i,a,b)   for(int i=a;i>=b;i--)
#define F first
#define S second
#define pii pair<int,int>
#define vi vector<int>
#define vii vector<pii>
#define pb push_back
#define mp  make_pair
#define all(v) (v).begin(), (v).end()
#define mod 100000000
#define inf 1e18 
int maxn=1e5;

using namespace std;
vi v(maxn+1),a(maxn+1);
build(int ind,int al,int ar)
{

}
signed main()
{
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output1.txt", "w", stdout);
    #endif
    
    IOS;
    int x;
    cin>>x;
    if(x>=30) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc:21:1: error: ISO C++ forbids declaration of 'build' with no type [-fpermissive]
   21 | build(int ind,int al,int ar)
      | ^~~~~
a.cc: In function 'int build(long long int, long long int, long long int)':
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: expected ';' before 'return'
    6 |         else    puts("No")
      |                           ^
      |                           ;
    7 |         return 0;
      |         ~~~~~~
Language: Java

public class Main {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        int num = scanner.nextInt();
        if(num>=30) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

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

import java.util.*;

class Main{
 
  pulic static void main(String args[]){
    
    Scanner s = new Scanner(System.in);
    
    int n = s.nextInt();
    
    if(n>=30)
      System.out.println("Yes");
    else
      System.out.println("No");
}
}

Compiler output:
Main.java:5: error: <identifier> expected
  pulic static void main(String args[]){
       ^
1 error
Language: C

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


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

#include <bits/stdc++>
int main()
{
  int x;
  cin >> x;
  if (x > 30)
  {
    cout << "Yes" << endl;
  }
  else
  {
    cout << "No" << endl;
  }
}


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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected '(' before 'x'
    7 |   if x>30
      |      ^
      |      (
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else
      |   ^~~~
a.cc:10:16: error: expected ';' before 'return'
   10 |     cout<<"Yes"
      |                ^
      |                ;
   11 |         return 0;
      |         ~~~~~~
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;
if(x<30)
cout<<"No";
else cout"Yes";}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: expected ';' before string constant
    8 | else cout"Yes";}
      |          ^~~~~
      |          ;
Language: Java

import java.util.*;
class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = sc.nextIt();
    String R;
    if(N>=30){
      R = "Yes";
    }else{
      R = "No";
    }
    System.out.println(R);                     
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
    int N = sc.nextIt();
              ^
  symbol:   method nextIt()
  location: variable sc of type Scanner
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

public class A {
	
	public static void main(String[] args) throws InterruptedException {
		FastScanner fs=new FastScanner();
		int n=fs.nextInt();
		System.out.println(n>=30?"Yes":"No");
			
	}
	
	void sort(int[] a) {
		ArrayList<Integer> list=new ArrayList<>();
		for (int i:a) list.add(i);
		Collections.sort(list);
		for (int i=0; i<a.length; i++) a[i]=list.get(i);
	}
	
	
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		
		public String next() {
			while (!st.hasMoreTokens())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
			
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
		
		public int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
		
		public long nextLong() {
			return Long.parseLong(next());
		}
		
		public long[] readLongArray(int n) {
			long[] a=new long[n];
			for (int i=0; i<n; i++) a[i]=nextLong();
			return a;
		}
	}

}


Compiler output:
Main.java:10: 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;
  scanf("%d",&X);
  if(X>=30)
  {
    printf("Yes");
  }
  else
  {
    printf("No");
  }
    

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected declaration or statement at end of input
   13 |   }
      |   ^
Language: C++

#include<bits/stdc++.h>
#define ll long long

int solve();
int main()
{
   int n;
   cin>>n;
   if(n>29)
    cout<<"Yes";
   else
    cout<<"No";
  return 0;
}
/*int solve()
{
    int n;
    cin>>n;
}*/


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

Compiler output:
a.cc:1:2: error: extended character 　 is not valid in an identifier
    1 | #include　<bits/stdc++>
      |  ^
a.cc:1:2: error: invalid preprocessing directive #include\U00003000
    1 | #include　<bits/stdc++>
      |  ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> x;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "No" << endl;
      |     ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     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;
     return 0;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main(){
      |   ~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before 'return'
   12 |         cout<<"Yes\n"
      |                      ^
      |                      ;
   13 | return 0;
      | ~~~~~~
Language: Java

import java.util.Scanner;

public class A174 {
	public static void main(String [] args) {
		Scanner sc = new Scanner(System.in);
		int X = sc.nextInt();
		if(X < 30)		System.out.printf("No");
		else				System.out.printf("Yse");
	}
}


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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected unqualified-id before '=' token
    5 |     int=X;
      |        ^
a.cc:6:10: error: 'X' was not declared in this scope
    6 |     cin>>X;
      |          ^
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:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

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


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

/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
public class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		if(x<30){
			System.out.println("No");
		}
		else{
				System.out.println("Yes");
		}
	}
}

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

import java.io.*;

public static void main(String[] args){
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  	try{
      String a = br.readLine();
      int X = Integer.parseInt(a);
      
      if(X >= 30){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }catch(IOException e){
    }catch(NumberFormatException e){
    }
}

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 <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << (t >= 30) ? "Yes" : "No" << endl;
      |                               ~~~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long

//int solve();
int main()
{
   int n;
   cin>>n;
   if(n>29)
    cout<<"Yes";
   else
    cout<<"No";
}
/*int solve()
{
    int n;
    cin>>n;
}*/


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

Compiler output:
a.cc:6:21: warning: multi-character character constant [-Wmultichar]
    6 |   if(a>=30) cout << 'Yes'<< endl;
      |                     ^~~~~
a.cc:7:16: warning: multi-character character constant [-Wmultichar]
    7 |   else cout << 'No' <<endl;
      |                ^~~~
a.cc:3:1: error: 'ant' does not name a type; did you mean 'int'?
    3 | ant a;
      | ^~~
      | int
a.cc: In function 'int main()':
a.cc:5:10: error: 'a' was not declared in this scope
    5 |   cin >> a ;
      |          ^
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:5:5: error: expected initializer before 'cin'
    5 |     cin>>n;
      |     ^~~
a.cc:6:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     if(n >= 30){
      |        ^
      |        yn
Language: Java

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

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

#include <cstdio>
#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>

#define ll long long
#define rr register

#define inf 1e9
#define MAXN 100010

using namespace std;

inline int read() {
	int s = 0, f = 0;
	char ch = getchar();
	while (!isdigit(ch)) f |= ch == '-', ch = getchar();
	while (isdigit(ch)) s = s * 10 + (ch ^ 48), ch = getchar();
	return f ? -s : s;
}

void print(int x) {
	if (x < 0) putchar('-'), x = -x;
	if (x > 9) print(x / 10);
	putchar(x % 10 + 48);
}

int x;

signed main() {
	x = read();
	if (x >= 30) cout << "Yes";
	else cout << "No";
}#include <cstdio>
#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>

#define ll long long
#define rr register

#define inf 1e9
#define MAXN 100010

using namespace std;

inline int read() {
	int s = 0, f = 0;
	char ch = getchar();
	while (!isdigit(ch)) f |= ch == '-', ch = getchar();
	while (isdigit(ch)) s = s * 10 + (ch ^ 48), ch = getchar();
	return f ? -s : s;
}

void print(int x) {
	if (x < 0) putchar('-'), x = -x;
	if (x > 9) print(x / 10);
	putchar(x % 10 + 48);
}

int x;

signed main() {
	x = read();
	if (x >= 30) cout << "Yes";
	else cout << "No";
}

Compiler output:
a.cc:36:2: error: stray '#' in program
   36 | }#include <cstdio>
      |  ^
a.cc:36:3: error: 'include' does not name a type
   36 | }#include <cstdio>
      |   ^~~~~~~
a.cc:51:12: error: redefinition of 'int read()'
   51 | inline int read() {
      |            ^~~~
a.cc:16:12: note: 'int read()' previously defined here
   16 | inline int read() {
      |            ^~~~
a.cc:59:6: error: redefinition of 'void print(int)'
   59 | void print(int x) {
      |      ^~~~~
a.cc:24:6: note: 'void print(int)' previously defined here
   24 | void print(int x) {
      |      ^~~~~
a.cc:65:5: error: redefinition of 'int x'
   65 | int x;
      |     ^
a.cc:30:5: note: 'int x' previously declared here
   30 | int x;
      |     ^
a.cc:67:8: error: redefinition of 'int main()'
   67 | signed main() {
      |        ^~~~
a.cc:32:8: note: 'int main()' previously defined here
   32 | signed main() {
      |        ^~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int t;
	scanf("%d",&t);
	if(t>=30) printf("Yes");
	else printf("No");
} 

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;
  cin>>x;
  if(x>=30){
    cout<<"Yes\n";
  }
  else{
    cout<<"No\n";
  }

Compiler output:
a.cc: In function 'int main()':
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 <bits/stdc++.h>
using namespace std;
 
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	ll t;
  	cin>>t;
	if(t>=30)
	{
		cout<<"Yes";
	}
	else
		cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'll' was not declared in this scope
    8 |         ll t;
      |         ^~
a.cc:9:14: error: 't' was not declared in this scope; did you mean 'tm'?
    9 |         cin>>t;
      |              ^
      |              tm
Language: C++

#include"iostream"
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:8:12: error: expected ';' before 'else'
    8 | cout<<"Yes"
      |            ^
      |            ;
    9 | else
      | ~~~~
Language: C++

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

int main() {
  int a;
  cin >> a;
  if(a >= 30) {
    return cout << "Yes" << endl;
  {
  return cout << "No" << endl;
{

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
    8 |     return cout << "Yes" << endl;
      |            ~~~~~~~~~~~~~~^~~~~~~
      |                          |
      |                          std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:10:23: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
   10 |   return cout << "No" << endl;
      |          ~~~~~~~~~~~~~^~~~~~~
      |                       |
      |                       std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
a.cc:11:2: error: expected '}' at end of input
   11 | {
      | ~^
a.cc:11:2: error: expected '}' at end of input
a.cc:9:3: note: to match this '{'
    9 |   {
      |   ^
a.cc:11:2: error: expected '}' at end of input
   11 | {
      |  ^
a.cc:7:15: note: to match this '{'
    7 |   if(a >= 30) {
      |               ^
a.cc:11:2: error: expected '}' at end of input
   11 | {
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

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


Compiler output:
Main.java:9: error: ';' expected
        else System.out.println("No")
                                     ^
1 error
Language: C++

#include <iostream>
using namespace std;

int main() {
    int x;
	scanf(%d,x);
	if(x==30)
	printf('Yes')
	else
	printf('No')
	return 0;
}

Compiler output:
a.cc:8:16: warning: multi-character character constant [-Wmultichar]
    8 |         printf('Yes')
      |                ^~~~~
a.cc:10:16: warning: multi-character character constant [-Wmultichar]
   10 |         printf('No')
      |                ^~~~
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '%' token
    6 |         scanf(%d,x);
      |               ^
a.cc:6:16: error: 'd' was not declared in this scope
    6 |         scanf(%d,x);
      |                ^
a.cc:8:16: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
    8 |         printf('Yes')
      |                ^~~~~
      |                |
      |                int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:8:22: error: expected ';' before 'else'
    8 |         printf('Yes')
      |                      ^
      |                      ;
    9 |         else
      |         ~~~~