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

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

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(*argc,**argv)
      |     ^~~~
a.cc:4:11: error: 'argc' was not declared in this scope
    4 | int main(*argc,**argv)
      |           ^~~~
a.cc:4:18: error: 'argv' was not declared in this scope
    4 | int main(*argc,**argv)
      |                  ^~~~
a.cc:4:22: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | int main(*argc,**argv)
      |                      ^
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
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: expected ';' before 'return'
    9 |     else cout << "No" << endl
      |                              ^
      |                              ;
   10 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>
#include <string>
 
int main(){
 
const int MIN = -40;
const int MAX = 40;
const int THRES = 30;
std::string fStr = "";
std::cin >> fStr;
 
int fTemp = stoi(fStr);
if(fTemp < Min || fTemp > Max){return -1;}
 
if(fTemp < THRES){std::cout<<"No" <<std::endl;}
else{std::cout<<"Yes"<<std::endl;}
 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'Min' was not declared in this scope; did you mean 'MIN'?
   13 | if(fTemp < Min || fTemp > Max){return -1;}
      |            ^~~
      |            MIN
a.cc:13:27: error: 'Max' was not declared in this scope; did you mean 'MAX'?
   13 | if(fTemp < Min || fTemp > Max){return -1;}
      |                           ^~~
      |                           MAX
Language: C++

#include <iostream>
#include <string>

int main(sysargv){

const int MIN = -40;
const int MAX = 40;
const int THRES = 30;
std::string fStr = "";
std::cin >> fStr;

int fTemp = stoi(fStr);
if(fTemp < Min || fTemp > Max){return -1;}

if(fTemp < THRES){std::cout<<"No" <<std::endl;}
else{std::cout<<"Yes"<<std::endl;}

return 0;
}

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main(sysargv){
      |     ^~~~
a.cc:4:10: error: 'sysargv' was not declared in this scope
    4 | int main(sysargv){
      |          ^~~~~~~
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:10: error: expected primary-expression before '=' token
    6 |   if(x > = 30){
      |          ^
a.cc:7:12: 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:15: 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 <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i,n) for(ll i = 0; i < (ll) n; i++)
#define vl vector<long long>
#define vs vector<string>

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

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

#include <bits/stdc++.h>
#include <Eigen/Core>

using namespace std;

// boost
#include <boost/multiprecision/cpp_int.hpp>
using boost::multiprecision::cpp_int;

using ll = long long;
using ld = long double;

using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vb = vector<bool>;
using vs = vector<string>;
using vld = vector<ld>;
using vvld = vector<vld>;

typedef pair<ll, ll> P;

#define bit(n) (1LL << (n))

//#define int long long

#define all(v) v.begin(), v.end()

#define rep(i, n) for (ll i = 0; i < n; i++)
#define REP(i, n) for (ll i = 1; i < n; i++)

#define FOR(i, a, b) for (ll i = (a); i < (b); i++)
#define FORm(i, m) for (auto i = m.begin(); i != m.end(); i++)

template <class T>
inline void chmax(T& a, T b) {
  a = std::max(a, b);
}
template <class T>
inline void chmin(T& a, T b) {
  a = std::min(a, b);
}

#define mod (ll)(1e9 + 7)
// #define mod (998244353ll)

const long long INF = 1LL << 60;

signed main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);

  ll x;
  cin >> x;

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

  return 0;
}


Compiler output:
a.cc:2:10: fatal error: Eigen/Core: No such file or directory
    2 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~
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:
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;

#define gc getchar_unlocked
#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)

int main() {
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0), cout << fixed << setprecision(10);
    srand(chrono::high_resolution_clock::now().time_since_epoch().count());
    int n, d;
    cin>>n>>d;
    d *= d;
    int c = 0, x, y;
    for(int i=0;i<n;i++)
    {
        cin>>x>>y;
        t = x*x + y*y;
        if(t <= d)
            c++;
    }
    cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:9: error: 't' was not declared in this scope
   24 |         t = x*x + y*y;
      |         ^
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:
a.cc:9:16: warning: missing terminating " character
    9 |   else cout<<No";
      |                ^
a.cc:9:16: error: missing terminating " character
    9 |   else cout<<No";
      |                ^~
a.cc: In function 'int main()':
a.cc:9:14: error: 'No' was not declared in this scope
    9 |   else cout<<No";
      |              ^~
Language: C++

#include<bits/stdc++.h>
using namesoace std;
#define ll long long
int main()
{
	ll x;
  	cin>>x;
  if(x>=30)
    	cout<<"YES"<<endl;
  else
    	cout<<"NO"<<endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesoace'
    2 | using namesoace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         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;
#deifne ll long long 
int main()
{
	ll x;
  	cin>>x;
  if(x>=30) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;

}

Compiler output:
a.cc:3:2: error: invalid preprocessing directive #deifne; did you mean #define?
    3 | #deifne ll long long
      |  ^~~~~~
      |  define
a.cc: In function 'int main()':
a.cc:6:9: error: 'll' was not declared in this scope
    6 |         ll x;
      |         ^~
a.cc:7:14: error: 'x' was not declared in this scope
    7 |         cin>>x;
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'st' has not been declared
   10 |     st::cout << "No";
      |     ^~
Language: C++

#include <iostream>

int main()
{
  int a;
  std::cin >> a;
  if( a > 30 ){
    std::cout << "Yes";
  }else{
    st::cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'st' has not been declared
   10 |     st::cout << "No";
      |     ^~
Language: C++

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:4:3: error: 'cin' was not declared in this scope
    4 |   cin >> X;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout << "Yes";
      |     ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "No";
      |         ^~~~
Language: C++

const char* func(){
  int X ;
  cin >> X;

  if( X > 30 ){
    return "Yes";
  }
  return "No";
}

Compiler output:
a.cc: In function 'const char* func()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> X;
      |   ^~~
Language: C++

if( x >= 30 ){
  return "Yes";
}
return "No";

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if( x >= 30 ){
      | ^~
a.cc:4:1: error: expected unqualified-id before 'return'
    4 | return "No";
      | ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ';' before '}' token
   12 |       printf("Yes")
      |                    ^
      |                    ;
   13 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

const int TEMP = 30;
bool airConditioner(int temp, bool &acOn)
  return (acOn >= TEMP? true : false);

int main()
{
  int X= 0;
  bool isAirConditioner = false;
  cin >> X;

  airConditioner(X, isAirConditioner);


  if(isAirConditioner)
    cout << "On" << endl;
  else
    cout << "Off << endl;
  return 0;
}

Compiler output:
a.cc:20:13: warning: missing terminating " character
   20 |     cout << "Off << endl;
      |             ^
a.cc:20:13: error: missing terminating " character
   20 |     cout << "Off << endl;
      |             ^~~~~~~~~~~~~
a.cc: In function 'bool airConditioner(int, bool&)':
a.cc:6:10: error: expected identifier before '(' token
    6 |   return (acOn >= TEMP? true : false);
      |          ^
a.cc:6:3: error: named return values are no longer supported
    6 |   return (acOn >= TEMP? true : false);
      |   ^~~~~~
a.cc:21:3: error: expected primary-expression before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: warning: no return statement in function returning non-void [-Wreturn-type]
   22 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

const int TEMP = 30;
bool airConditioner(int temp, bool &acOn)
  return (acOn >= TEMP? true : false);

int main()
{
  int temperature = 0;
  bool isAirConditioner = false;
  cin >> X;

  airConditioner(X, isAirConditioner);

  if(isAirConditioner)
    cout << "The current temperature is " << X << ", so the Air Conditioner will turn on" << endl;

  else
    cout << "The current temperature is "<< X << ", so the Air Conditioner will NOT turn on" << endl;

  return 0;
}

Compiler output:
a.cc: In function 'bool airConditioner(int, bool&)':
a.cc:6:10: error: expected identifier before '(' token
    6 |   return (acOn >= TEMP? true : false);
      |          ^
a.cc:6:3: error: named return values are no longer supported
    6 |   return (acOn >= TEMP? true : false);
      |   ^~~~~~
a.cc:12:10: error: 'X' was not declared in this scope
   12 |   cin >> X;
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main(){
 int tem;
  
 if(30<=tem <=40) cout <<"Yes" << endl;
 else cout <, "No" << endl; 

return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: expected primary-expression before ',' token
    8 |  else cout <, "No" << endl;
      |             ^
a.cc:8:20: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |  else cout <, "No" << endl;
      |               ~~~~~^~~~~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Random;
import java.util.StringTokenizer;

/*
1
4
0011
 */
public class A {

    public static void main(String[] args) {
        FastScanner fs=new FastScanner();
        int T=fs.nextInt();
        if(T>=30){
            System.out.println("YES");

        }
        else{
            System.out.println("NO");
        }


    }

    static final Random random=new Random();

    static void ruffleSort(int[] a) {
        int n=a.length;//shuffle, then sort
        for (int i=0; i<n; i++) {
            int oi=random.nextInt(n), temp=a[oi];
            a[oi]=a[i]; a[i]=temp;
        }
        Arrays.sort(a);
    }

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

        int nextInt() {
            return Integer.parseInt(next());
        }
        int[] nextArray(int n) {
            int[] a=new int[n];
            for (int i=0; i<n; i++) a[i]=nextInt();
            return a;
        }
        long nextLong() {
            return Long.parseLong(next());
        }
    }


}

Compiler output:
Main.java:14: 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 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:10: error: expected primary-expression before '<' token
    8 |   if(X ==< 30){
      |          ^
a.cc:12:5: error: expected '}' at end of input
   12 |    }
      |     ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>

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 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:10: error: expected primary-expression before '<' token
    7 |   if(X ==< 30){
      |          ^
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/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "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:21: 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 <bits/stdc++.h>
#define FOR(i,a) for(int i=0;i<a;i++)
#define boost ios::sync_with_stdio(0); cin.tie(0);
using namespace std;

int main() {
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	boost;
	int m;
	scanf("%d",&m);
	vector<bool> visit[m];
	int cur = 0, ret = -1;
	for (int i = 0; ; ++i) {
		cur = (cur * 10 + 7) % m;
		if (visit[cur]) break;
		visit[cur] = true;
		if (cur == 0) {
			ret = i + 1;
			break;
		}
	}
	printf("%d\n",ret);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:30: error: could not convert 'visit[cur]' from 'std::vector<bool>' to 'bool'
   18 |                 if (visit[cur]) break;
      |                     ~~~~~~~~~^
      |                              |
      |                              std::vector<bool>
a.cc:19:30: error: no match for 'operator=' (operand types are 'std::vector<bool>' and 'bool')
   19 |                 visit[cur] = true;
      |                              ^~~~
In file included from /usr/include/c++/14/vector:67,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_bvector.h:894:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&) [with _Alloc = std::allocator<bool>]'
  894 |       operator=(const vector& __x)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:894:31: note:   no known conversion for argument 1 from 'bool' to 'const std::vector<bool>&'
  894 |       operator=(const vector& __x)
      |                 ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_bvector.h:926:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::vector<bool, _Alloc>&&) [with _Alloc = std::allocator<bool>]'
  926 |       operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:926:26: note:   no known conversion for argument 1 from 'bool' to 'std::vector<bool>&&'
  926 |       operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_bvector.h:952:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::initializer_list<bool>) [with _Alloc = std::allocator<bool>]'
  952 |       operator=(initializer_list<bool> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:952:40: note:   no known conversion for argument 1 from 'bool' to 'std::initializer_list<bool>'
  952 |       operator=(initializer_list<bool> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~
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:5:9: error: expected ';' before ':' token
    5 |   cin>>x:
      |         ^
      |         ;
a.cc:7:3: error: 'else' without a previous 'if'
    7 |   else{cout<<"No"<<endl;}
      |   ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cou' was not declared in this scope; did you mean 'cos'?
   10 |     cou<<"Yes"<<"\n";
      |     ^~~
      |     cos
Language: C++

#include <iostream>

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:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:13:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         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)
    return yes;
  else
    return no;

Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'yes' undeclared (first use in this function)
    7 |     return yes;
      |            ^~~
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: 'no' undeclared (first use in this function)
    9 |     return no;
      |            ^~
main.c:9:5: error: expected declaration or statement at end of input
    9 |     return no;
      |     ^~~~~~
Language: C++

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int x;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> x;
      |   ^~~
a.cc:11:2: error: expected unqualified-id before 'if'
   11 |  if(x>=30){
      |  ^~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |   else{
      |   ^~~~
a.cc:17:3: error: 'cout' does not name a type
   17 |   cout << ans ;
      |   ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'enl' was not declared in this scope
   10 |     cout<<"No"<<enl;
      |                 ^~~
Language: C++

#include <bits/stdc++.h>

int main(int argc, char **argv)
{
  int temp;
  temp << cin;
  if (temp >= 30) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   temp << cin;
      |           ^~~
      |           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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     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 syd;
int main(){
  int a;
  cin >> a;
  if (a >29){
    cout << "Yes";
  }else{
    cout << "No";
  }
}

Compiler output:
a.cc:2:17: error: 'syd' is not a namespace-name
    2 | using namespace syd;
      |                 ^~~
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 >> a;
      |   ^~~
      |   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++

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclube; did you mean #include?
    1 | #inclube <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> a;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if (a >= 30){
      |   ^~
a.cc:8:4: error: 'eles' does not name a type
    8 |   }eles{
      |    ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclube; did you mean #include?
    1 | #inclube <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> a;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if (a >= 30){
      |   ^~
a.cc:8:4: error: 'eles' does not name a type
    8 |   }eles{
      |    ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

int main() {
  	long n;
  	cin >> n;
  	if(n>=30){
      cout << "Yes" << endl;
    }
  	eles{
      cout << "No" << endl;
    }
  	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'eles' was not declared in this scope
   11 |         eles{
      |         ^~~~
Language: C

#include<stdio.h>
int main(void){
  int a;
  scanf("%d",&a);
  if(a>30)
    printf("Yes\n")
  else
    printf("No\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before 'else'
    6 |     printf("Yes\n")
      |                    ^
      |                    ;
    7 |   else
      |   ~~~~
Language: C++

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

Compiler output:
a.cc:2:17: error: 'stdl' is not a namespace-name
    2 | using namespace stdl
      |                 ^~~~
a.cc:2:21: error: expected ';' before 'int'
    2 | using namespace stdl
      |                     ^
      |                     ;
    3 | int main()
      | ~~~                  
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>tem;
      |         ^~~
      |         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:17: 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:30: 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/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:17: 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:29: 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: Java

package codings;

import java.util.*;

import javax.lang.model.util.ElementScanner6;

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


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

#include<iostream>
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:18: error: expected ';' before 'else'
   10 |     cout << "Yes"
      |                  ^
      |                  ;
   11 |   else
      |   ~~~~            
a.cc:12:17: error: expected '}' at end of input
   12 |     cout << "No"
      |                 ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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:7:15: error: expected ')' before '\U0000ff0c'
    7 |     scanf("%d"，&X);
      |          ~    ^~
      |               )
Language: C++

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

int main(){
  int x;
  cin >> x;
  -40>=x>=40
  if (x >= 30){
    cout << "yes"<< endl;
  }
  else {
    cout << "no" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before 'if'
    7 |   -40>=x>=40
      |             ^
      |             ;
    8 |   if (x >= 30){
      |   ~~         
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else {
      |   ^~~~
Language: C++

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

int main(){
  int x;
  -40>=x>=40
  cin >> x;
  
  if (x >= 30){
    cout << "yes"<< endl;
  }
  else {
    cout << "no" << endl;
  }
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before 'cin'
    6 |   -40>=x>=40
      |             ^
      |             ;
    7 |   cin >> x;
      |   ~~~        
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: expected ';' before 'cin'
    6 |   -40 < x && x < 40
      |                    ^
      |                    ;
    7 |   cin >> x;
      |   ~~~
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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected primary-expression before '>' token
    7 |   if(x=>30)cout<<"Yes"<<endl;
      |        ^
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:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
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:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespaze'
    2 | using namespaze std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> 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:6:10: error: 'x' was not declared in this scope
    6 |   cin >> x;
      |          ^
a.cc:9:5: 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:21: 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: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)
      |     ^~~~
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

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

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

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

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

Compiler output:
a.cc:8:18: warning: missing terminating " character
    8 |     else cout << "No\n';
      |                  ^
a.cc:8:18: error: missing terminating " character
    8 |     else cout << "No\n';
      |                  ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
    9 | }
      | ^
Language: C

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'Yes' was not declared in this scope
    8 |     cout<<Yes;
      |           ^~~
a.cc:10:11: error: 'No' was not declared in this scope
   10 |     cout<<No;
      |           ^~
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: In function 'int main()':
a.cc:6:8: error: expected primary-expression before '>' token
    6 |   if(X=>30){cout<<"Yes"<<endl;}
      |        ^
Language: C++

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

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

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

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

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

#include<bits/stdc++.h>
int main(){
  int N;
  cin << N;
  if(N>=30){
    cout << "es"<<endl;
  }
  else{
    cout << "N"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << "es"<<endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << "es"<<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:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "N"<<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:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << "N"<<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"<<endl;
  } else {
      cout<<"No<<"endl;
    }
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: unable to find string literal operator 'operator""endl' with 'const char [5]', 'long unsigned int' arguments
    9 |       cout<<"No<<"endl;
      |             ^~~~~~~~~~
a.cc:11:14: error: expected '}' at end of input
   11 |     return 0;
      |              ^
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;
    }
    return 0;
    
    
 
    
  }

Compiler output:
a.cc: In function 'int main()':
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:13: error: unable to find string literal operator 'operator""endl' with 'const char [5]', 'long unsigned int' arguments
    9 |       cout<<"No<<"endl;
      |             ^~~~~~~~~~
Language: Java

class Main {
    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: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

#include<stdio.h>

int main(){
  int X;
  scnaf("%d",&X);
  if(X>=30)printf("Yes");
  else{
    printf("No");
  }
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scnaf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   scnaf("%d",&X);
      |   ^~~~~
      |   scanf
Language: Java

import java.util.Scanner;

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


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: Java

package javacp;
import java.util.Scanner;

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


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 <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: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) {
      |              ^