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

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

typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;

#define rep(i, n) \
for(int i = 0; i <n; i++)
#define REP(i, a, b) \
for(int i = int(a); i <= int(b); i++)
#define TRvi(c, it) \
for(vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for(vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for(msi::iterator it = (c).begin(); it != (c).end(); it++)

#define INF 2000000000

#define MEMSET_INF 127
#define MEMSET_HALF_INF 63

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

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    solve();
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:35:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   35 | int main()
      |         ^~
a.cc:35:9: note: remove parentheses to default-initialize a variable
   35 | int main()
      |         ^~
      |         --
a.cc:35:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:36:1: error: a function-definition is not allowed here before '{' token
   36 | {
      | ^
a.cc:41:2: error: expected '}' at end of input
   41 | }
      |  ^
a.cc:27:13: note: to match this '{'
   27 | void solve(){
      |             ^
Language: Java

import java.util.Scanner;

public class AirConditioner {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int x = sc.nextInt();

        if (x >= 30) {
            System.out.printf("Yes");
        }
        else
        {
            System.out.printf("No");
        }
    }
}


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

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

int main(){
	if(X>=30) cout<<  "YES\n" ;
  	else cout << "NO\n";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'X' was not declared in this scope
    5 |         if(X>=30) cout<<  "YES\n" ;
      |            ^
Language: C++

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



return 0;}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected '}' before 'else'
    8 | else
      | ^~~~
a.cc:6:11: note: to match this '{'
    6 |  if(n>=30){
      |           ^
Language: C

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

int main() {
  
  int X;
  cin >> X;

  if (25 < X) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;

}

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

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

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

#include<iostream>
#include<stdio>
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:2:9: fatal error: stdio: No such file or directory
    2 | #include<stdio>
      |         ^~~~~~~
compilation terminated.
Language: C++

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


Compiler output:
a.cc:15:3: error: expected unqualified-id before 'return'
   15 |   return 0;
      |   ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: Java

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

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

import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner stdinScanner = new Scanner(System.in);
        int K = stdinScanner.nextInt();
        int count = 1;
        int current = 7;
        while (count <= K) {
            if (current % K == 0) {
                System.out.println(count);
                return;
            }
            count++;
            current = (current * 10 + 7) % K;
        }
        System.out.println("-1");
    }

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

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


Compiler output:
a.cc:21:5: error: redefinition of 'int main()'
   21 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: C++

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:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> n;
      |   ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << "Yes";
      |     ^~~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << "No";
      |     ^~~~
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:
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;

struct point {
    int left, right, block, id;
};

bool cmp(const point &lhs, const point &rhs) {
    if (lhs.block < rhs.block)
        return true;
    else if (lhs.block > rhs.block)
        return false;
    else
        return lhs.right < rhs.right;
}

int main(){
    int n, q;
    scanf("%d", &n);
        scanf("%d", &q);

    vector<int> A(n);
    for (int i = 0; i < n; i++)
        scanf("%d", &A[i]);

    int block_size = sqrt(n);

    vector<point> query(q);
    for (int i = 0; i < q; i++) {
        scanf("%d %d", &query[i].left, &query[i].right);
        query[i].left--, query[i].right--;
        query[i].block = query[i].left / block_size;
        query[i].id = i;
    }

    sort(query.begin(), query.end(), cmp);

    vector<int> solution(q);
    vector<int> hash(1000100);

    int left = 0, right = 0, answer = 1;
    hash[A[0]] = 1;

    for (const point &task : query) {
        while (left < task.left) {
            hash[A[left]]--;
            answer -= (hash[A[left]] == 0);
            left++;
        }
        while (left > task.left) {
            left--;
            hash[A[left]]++;
            answer += (hash[A[left]] == 1);
        }
        while (right < task.right) {
            right++;
            hash[A[right]]++;
            answer += (hash[A[right]] == 1);
        }
        while (right > task.right) {
            hash[A[right]]--;
            answer -= (hash[A[right]] == 0);
            right--;
        }
        solution[task.id] = answer;
    }

    for (int answer : solution)
        printf("%d\n", answer);

    return 0;
}

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

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

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

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

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int K = sc.nextInt();
		int A[];
        A=new int[100];
		double B[];
        B=new double[100];
        B[0]=7;
        double d;
        for(int i=1;i<100;i++){
            for(int j=0;j<i;j++){
              d=d*10;
            }
        	B[i]=B[i-1]+7.0*d;
        }
        for(int i=1;i<100;i++){
        	A[i]=(int)B[i];
        }        
        int C[];
        C=new int[100];
        for(int i=1;i<100;i++){
        	C[i]=A[i]%K;
            if (C[i]==0){
            	System.out.println(i);
            } else {
            	System.out.println(-1);
            }
        }               
	}
}


Compiler output:
Main.java:15: error: variable d might not have been initialized
              d=d*10;
                ^
Main.java:17: error: variable d might not have been initialized
        	B[i]=B[i-1]+7.0*d;
        	                ^
2 errors
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:8:12: note: to match this '{'
    8 |   if(x>=30){
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main(){
int x=0;
  
  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: 'Yes' was not declared in this scope
    9 |     cout << Yes << endl;
      |             ^~~
a.cc:12:13: error: 'No' was not declared in this scope
   12 |     cout << No <<endl;
      |             ^~
Language: C++

#include<iostream>

using namespace std;

int main(){
 int x;
 string y = "yes";
 string n = "no"
 cin >> x;

 if(x >= 30){
  cout << y << endl;
 } else {
  cout << n << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: expected ',' or ';' before 'cin'
    9 |  cin >> x;
      |  ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
int x=0;
  
  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: 'Yes' was not declared in this scope
    9 |     cout << Yes << endl;
      |             ^~~
a.cc:11:3: error: expected '}' before 'else'
   11 |   else{
      |   ^~~~
a.cc:8:12: note: to match this '{'
    8 |   if(x>=30){
      |            ^
a.cc:12:13: error: 'No' was not declared in this scope
   12 |     cout << No <<endl;
      |             ^~
Language: C++

#include<iostream.h>

using namespace std;

int main(){
 int x;
 string y = "yes";
 string n = "no"
 cin >> x;

 if(x >= 30){
  cout << y << endl;
 } else {
  cout << n << endl;
 }
}

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

#include<iostream.h>

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

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int K = sc.nextInt();
		int A[];
        A=new int[100];
		double B[];
        B=new double[100];
        B[0]=7;
        for(int i=1;i<100;i++){
        	B[i]=B[i-1]+7.0*(10.0)^(double)i;
        }
        for(int i=1;i<100;i++){
        	A[i]=(int)B[i];
        }        
        int C[];
        C=new int[100];
        for(int i=1;i<100;i++){
        	C[i]=A[i]%K;
            if (C[i]=0){
            	System.out.println(i);
            } else {
            	System.out.println(-1);
            }
        }               
	}
}


Compiler output:
Main.java:13: error: bad operand types for binary operator '^'
        	B[i]=B[i-1]+7.0*(10.0)^(double)i;
        	                      ^
  first type:  double
  second type: double
Main.java:22: error: incompatible types: int cannot be converted to boolean
            if (C[i]=0){
                    ^
2 errors
Language: C++

#include<iostream.h>

using namespace std;

int main(){
 int x;
 cin >> x;

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

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

#include<iostream.h>

using namespace std;

int main(){
 int x;
 cin >> x;

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

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

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <numeric>
#include <queue>
#include <stack>
#define mod 1000000007
#define rep(i,n) for(ll i = 0; i < (n); i++)
#define srep(i,s,t) for (ll i = s; i < t; i++)
#define drep(i,n) for(ll i = (n)-1; i >= 0; i--)
using namespace std;
typedef long long ll;
typedef vector<vector<char>> field_t;
typedef unsigned long long ull;
typedef pair<ll, ll> point_t;
using Graph = vector<vector<ll>>; // グラフ型 // グラフ


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

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

#include <boost/multiprecision/cpp_int.hpp>
#include <bits/stdc++.h>
using namespace std;
using namespace boost::multiprecision;
int main(){
    cpp_int x=7;
    long long n;
    cin>>n;
    if(n%2==0||n%5==0){
        cout<<-1<<endl;
        return 0;
    }
    for(int i=1;i<=1000000;i++){
        if(x%n==0){
            cout<<i<<endl;
            return 0;
        }
        x=x+7*pow(10,i);
    }
    cout<<-1<<endl;
    return 0;
}

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

#include <stdio.h>
using namespace std;
int main(){
  int temp;
  cin>>temp;
  if(temp>=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
    5 |   cin>>temp;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout<<"Yes"<<endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |     cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:17: error: 'endl' was not declared in this scope
    9 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:9:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int x = 0;
  cin >> x;
  
  bool t = false;
  
  if(X >= 30){
    temp = true;
  }
  
  if(t){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'X' was not declared in this scope
   10 |   if(X >= 30){
      |      ^
a.cc:11:5: error: 'temp' was not declared in this scope; did you mean 'tm'?
   11 |     temp = true;
      |     ^~~~
      |     tm
Language: C++

#include<iostream>
using namespace std;

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

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

#include <stdio.h>

int main()
{
  int X;
  
  scanf_s("%d", &X);
  
  if(X >= 30 && X <= 40)
    printf("Yes");
  else if(X >= -40 && X < 30)
    printf("No");
  else
    printf("error");
  return 0;
}
  

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>x;
      |         ^~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout<<"Yes";
      |     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"No";
      |     ^~~~
a.cc:10:3: error: 'retuen' was not declared in this scope
   10 |   retuen 0;
      |   ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
unsigned long long MAX = 184467440737095;
unsigned long long dp[184467440737095];
unsigned long long dp2[184467440737095];
int main()
{
    int64_t K;
    cin >> K;
    dp[0] = 7%K;
    dp2[0] = 7;
    for(int64_t i = 0 ; i < MAX ; ++i)
    {
        dp2[i+1] = (10%K) * dp2[i];
        dp2[i+1] =  dp2[i+1]%K;
        dp[i+1] = (dp[i]+dp2[i+1])%K;
        //cout << dp[i+1] << endl;
        if(dp[i+1] == 0)
        {
            cout << i+2 << endl;
            return 0;
        }
    }
    cout << "-1" << endl;
    // int64_t p = 7;
    // if((p%K )== 0) 
    // {
    //     cout << 1 << endl;
    //     return 0;
    // }
    // for(int i = 1 ; i < 10000; ++i)
    // {
    //     p = p + pow(10, i)*7;
    //     cout << p << endl;
    //     if((p%K )== 0) 
    //     {
    //         cout << i+1 << endl;
    //         return 0;
    //     }
    // }
    // cout << "-1" << endl;
    // int N, D;
    // cin >> N >> D;
    // std::vector<double> x;
    // std::vector<double> y;
    // double a, b;
    // int count = 0;
    // for(int i = 0 ; i < N ; ++i)
    // {
    //     cin >> a >> b;
    //     double d = sqrt(a*a+b*b);
    //     if(d <= D) ++count;
    // }
    // cout << count <<endl;
    
    // std::vector<double> x;
    // x.push_back(0.0);
    // cout << x.size() << endl;
    // int a, b, c;
    // cin >> a >> b >> c;
    // string s;
    // cin >> s;
    // cout << a+b +c << " " << s<< endl;
    // std::cout << "Hello, World" << std::endl;
    // int i = 0;
    // if( i == 0 )
    // {
    //     std::cout << "say hello!!!" << std::endl;
    // }
    // for(int i = 0 ; i < 10 ; ++i)
    // {
    //     std::cout << i << std::endl;
    // }
    // std::cin>>i;
    return 0;
}

Compiler output:
/tmp/ccZqAYGC.o: in function `main':
a.cc:(.text+0x3c): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccZqAYGC.o
a.cc:(.text+0x77): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccZqAYGC.o
a.cc:(.text+0x96): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccZqAYGC.o
a.cc:(.text+0xb1): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccZqAYGC.o
a.cc:(.text+0xde): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccZqAYGC.o
a.cc:(.text+0x110): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccZqAYGC.o
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
long long MAX = 10000000000;
long long dp[10000000000];
long long dp2[10000000000];
int main()
{
    int64_t K;
    cin >> K;
    dp[0] = 7%K;
    dp2[0] = 7;
    for(int64_t i = 0 ; i < MAX ; ++i)
    {
        dp2[i+1] = (10%K) * dp2[i];
        dp2[i+1] =  dp2[i+1]%K;
        dp[i+1] = (dp[i]+dp2[i+1])%K;
        //cout << dp[i+1] << endl;
        if(dp[i+1] == 0)
        {
            cout << i+2 << endl;
            return 0;
        }
    }
    cout << "-1" << endl;
    // int64_t p = 7;
    // if((p%K )== 0) 
    // {
    //     cout << 1 << endl;
    //     return 0;
    // }
    // for(int i = 1 ; i < 10000; ++i)
    // {
    //     p = p + pow(10, i)*7;
    //     cout << p << endl;
    //     if((p%K )== 0) 
    //     {
    //         cout << i+1 << endl;
    //         return 0;
    //     }
    // }
    // cout << "-1" << endl;
    // int N, D;
    // cin >> N >> D;
    // std::vector<double> x;
    // std::vector<double> y;
    // double a, b;
    // int count = 0;
    // for(int i = 0 ; i < N ; ++i)
    // {
    //     cin >> a >> b;
    //     double d = sqrt(a*a+b*b);
    //     if(d <= D) ++count;
    // }
    // cout << count <<endl;
    
    // std::vector<double> x;
    // x.push_back(0.0);
    // cout << x.size() << endl;
    // int a, b, c;
    // cin >> a >> b >> c;
    // string s;
    // cin >> s;
    // cout << a+b +c << " " << s<< endl;
    // std::cout << "Hello, World" << std::endl;
    // int i = 0;
    // if( i == 0 )
    // {
    //     std::cout << "say hello!!!" << std::endl;
    // }
    // for(int i = 0 ; i < 10 ; ++i)
    // {
    //     std::cout << i << std::endl;
    // }
    // std::cin>>i;
    return 0;
}

Compiler output:
/tmp/ccrxKwTH.o: in function `main':
a.cc:(.text+0x3c): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccrxKwTH.o
a.cc:(.text+0x71): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccrxKwTH.o
a.cc:(.text+0x90): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccrxKwTH.o
a.cc:(.text+0xab): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccrxKwTH.o
a.cc:(.text+0xd2): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccrxKwTH.o
a.cc:(.text+0x104): relocation truncated to fit: R_X86_64_PC32 against symbol `dp2' defined in .bss section in /tmp/ccrxKwTH.o
collect2: error: ld returned 1 exit status
Language: C++

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclued; did you mean #include?
    1 | #inclued<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |   int x;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 | #inclued<bits/stdc++.h>
a.cc:7:11: error: 'cout' was not declared in this scope
    7 |   if(x<30)cout<<"No\n";
      |           ^~~~
a.cc:7:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout<<"Yes\n";
      |        ^~~~
a.cc:8:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: 'Yes' was not declared in this scope
    7 |     cout<<Yes;
      |           ^~~
a.cc:10:11: error: 'No' was not declared in this scope
   10 |     cout<<No;}
      |           ^~
Language: Java

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

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

#include<iostream>
using namespace std;
#define ll long long
int main(){
  ll t;
  cin>>t;
  if(t>=35){
  cout<<"Yes";}else cout<<"No"
  
return 0;}

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

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iniclude; did you mean #include?
    1 | #iniclude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #iniclude<iostream>
a.cc:7:4: error: 'cout' was not declared in this scope
    7 |    cout<<"yes"<<"\n";
      |    ^~~~
a.cc:7:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:1: error: 'cout' was not declared in this scope
   10 | cout<<"No"<<"\n";
      | ^~~~
a.cc:10:1: 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 ll long long
int main(){
  ll t;
  cin>>t;
  if(t>=35){
  cout<<"Yes";}else cout<<"No"
  
return 0;}

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

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

int main() {
	ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
    int t;
    cin>>t;
    cout<< (t>=30 : "Yes" : "No")<<endl;

	return 0;
}


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

/*
     author:: tamajit banerjee
*/

#include<iostream>
#include<vector>
using namespace std;
#define pb push_back
#define ll long long int
# define pll pair<ll,ll>
ll c[500001];
ll n,q,cnt;
int vis[500001];
ll l,r;
int B=720;
pair<int ,pair<int,int> > query[500001];
int ans[500001];


bool compare(pair<int ,pair<int,int> > a, pair<int ,pair<int,int> > b){
    if(a.first/B==b.first/B){
    return a.second.first<b.second.first;
    }
    return a.first<b.first;
}

void add(int x){
    if(vis[x]==0){
        ++cnt;
    }
    ++vis[x];
}

void subtract(int x){
    if(vis[x]==1){
        --cnt;
    }
    --vis[x];
}
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin>>n;
    cin>>q;
      for(int i=0;i<n;i++){
          cin>>c[i];
          --c[i];
          vis[i]=0;
    }
    for(int i=0;i<q;i++){
        cin>>l>>r;
        --l,--r;
        query[i]={l,{r,i}};
    }
     sort(query,query+q,compare) ;
     l=0,r=-1;
     cnt=0;
     for(int i=0;i<q;i++){
         while(r<query[i].second.first){
            r++;
            add(c[r]);
         }
         while(r>query[i].second.first){
             subtract(c[r]);
             r--;
         }
         while(l<query[i].first){
             subtract(c[l]);
             l++;
         }
         while(l>query[i].first){
             l--;
             add(c[l]);
         }
         ans[query[i].second.second]=cnt;
     }
     for(int i=0;i<q;i++){
         cout<<ans[i]<<'\n';
     }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:19: warning: narrowing conversion of 'l' from 'long long int' to 'int' [-Wnarrowing]
   53 |         query[i]={l,{r,i}};
      |                   ^
a.cc:55:6: error: 'sort' was not declared in this scope; did you mean 'short'?
   55 |      sort(query,query+q,compare) ;
      |      ^~~~
      |      short
Language: C++

//#include<bits/stdc++.h>
#include<iostream>
#include <stdio.h>
#include<vector>

using namespace std;

//#define io freopen("test.txt", "r", stdin);
#define fast ios_base::sync_with_stdio(0);cin.tie(0);
#define lli long long int
int main(){
    fast 
    io
    lli 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:13:5: error: 'io' was not declared in this scope
   13 |     io
      |     ^~
a.cc:15:10: error: 'n' was not declared in this scope
   15 |     cin>>n;
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
void buildtree(vector<int> &arr,vector<unordered_set<int> > &v,int low,int high,int index){
	if(low>high)
	return;
	if(low==high){
		v[index].insert(arr[low]);
		return;
	}
	int mid=low+high;
	mid=mid/2;
	buildtree(arr,v,low,mid,2*index+1);
	buildtree(arr,v,mid+1,high,2*index+2);
	v[index].insert(v[2*index+1].begin(),v[2*index+1].end());
	v[index].insert(v[2*index+2].begin(),v[2*index+2].end());
}
unordered_set<int> sum(vector<unordered_set<int> > &v,int low,int high,int left,int right,int index){
	set<int> temp;
	if(low>right||high<left||low>high)
	return temp;
	if(low>=left&&right>=high){
		return v[index];
	}
	int mid=(low+high)/2;
	set<int> lef=sum(v,low,mid,left,right,2*index+1);
	set<int> righ=sum(v,mid+1,high,left,right,2*index+2);
	temp.insert(lef.begin(),lef.end());
	temp.insert(righ.begin(),righ.end());
	return temp;
}
int main()
{
	ios_base::sync_with_stdio(false);
   cin.tie(NULL);
   int n,q;
   cin>>n>>q;
   vector<int> arr(n);
   for(int i=0;i<n;i++){
   	cin>>arr[i];
   }
   int h = (int)ceil(log2(n)); 
    h = (2 * (pow(2, h))) - 1; 
  vector<unordered_set<int> > v(h);
    buildtree(arr,v,0,n-1,0);
    while(q--){
    	int l,r;
    	cin>>l>>r;
    	set<int> p=sum(v,0,n-1,l-1,r-1,0);
    	cout<<p.size()<<"\n";
	}
}

Compiler output:
a.cc: In function 'std::unordered_set<int> sum(std::vector<std::unordered_set<int> >&, int, int, int, int, int)':
a.cc:20:16: error: could not convert 'temp' from 'std::set<int>' to 'std::unordered_set<int>'
   20 |         return temp;
      |                ^~~~
      |                |
      |                std::set<int>
a.cc:25:25: error: conversion from 'std::unordered_set<int>' to non-scalar type 'std::set<int>' requested
   25 |         set<int> lef=sum(v,low,mid,left,right,2*index+1);
      |                      ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:26:26: error: conversion from 'std::unordered_set<int>' to non-scalar type 'std::set<int>' requested
   26 |         set<int> righ=sum(v,mid+1,high,left,right,2*index+2);
      |                       ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:29:16: error: could not convert 'temp' from 'std::set<int>' to 'std::unordered_set<int>'
   29 |         return temp;
      |                ^~~~
      |                |
      |                std::set<int>
a.cc: In function 'int main()':
a.cc:48:23: error: conversion from 'std::unordered_set<int>' to non-scalar type 'std::set<int>' requested
   48 |         set<int> p=sum(v,0,n-1,l-1,r-1,0);
      |                    ~~~^~~~~~~~~~~~~~~~~~~
Language: C++

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

signed 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:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>n;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<"YES";
      |     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"NO";
      |     ^~~~
a.cc:9:12: error: expected '}' at end of input
    9 |   return 0;
      |            ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: Java

import java.util.*;
class Ac{
public static void main(String args[]){
Scanner sr=new Scanner(System.in);
int t=sr.nextInt();
if(n<30)
System.out.println("NO");
else
System.out.println("YES");
}
}

Compiler output:
Main.java:6: error: cannot find symbol
if(n<30)
   ^
  symbol:   variable n
  location: class Ac
1 error
Language: C++

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

#include<stdio.h> 
#include<iostream> 
#include<string.h>
#include<cstring>
#include<string>
#include<math.h>
#include<algorithm>
#include<bits/stdc++.h>
#include<map>
#include<vector>
#include<cmath>
#include<queue>
#include<set>
#define cuttime ios::sync_with_stdio(false)
#define swap(x, y) x ^= y, y ^= x, x^= y
#define INF 0x3f3f3f3f
#define rep(i,a,b) for(int i=(a);i<=(b);++i)
#define dep(i,a,b) for(int i=(a);i>=(b);--i)
#define scan1(x) scanf("%d",&x)
#define scan2(x,y) scanf("%d%d",&x,&y)
#define scan3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define scanll1(x) scanf("%lld",&x)
#define scanll2(x,y) scanf("%lld%lld",&x,&y)
#define scanll3(x,y,z) scanf("%lld%lld%lld",&x,&y,&z)
#define lowbit(x) (x&(-x))
#define lson l,mid,rt<<1
#define rson mid+1,r,rt<<1|1
#define debug(x) cout <<#x<<": "<<x<<endl
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
const int N=5e6+20;
const int mod=1e9+7;
   

int main(){
    int x=read();
    if(x>=30)puts("Yes");
    else puts("No");
}
/*
 */

Compiler output:
a.cc: In function 'int main()':
a.cc:37:15: error: too few arguments to function 'ssize_t read(int, void*, size_t)'
   37 |     int x=read();
      |           ~~~~^~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /usr/include/c++/14/csignal:42,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:116,
                 from a.cc:8:
/usr/include/unistd.h:371:16: note: declared here
  371 | extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur
      |                ^~~~
Language: C++

#include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<vector>
#include<cmath>
#include<map> 
#include<string>
#define int long long
using namespace std;
int t,a,b,cnt;
signed main()
{
	cin>>n;
	if(n>=30)
	{
		cout<<"Yes";
	}
	else
	{
		cout<<"No";
	}
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   14 |         cin>>n;
      |              ^
      |              yn
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		// スペース区切りの整数の入力
		int D = sc.nextInt();
        int X[];
		X = new int[N];
        int Y[];
		Y = new int[N];
        for (int i = 0; i < N; i++){
			 X[i] = sc.nextInt();
			 Y[i] = sc.nextInt();
        }
        double L[];
        L=new int[N];
        int Nstep ;
        Nstep=0;
        for (int j = 0; j < N; j++){
        	L[j]=((X[j])^2+(Y[j])^2)^(0.5);
      	    if (L[j]<=D){
        		Nstep=Nstep+1;
        	}
        }
		// 出力
		System.out.println(Nstep);
	}
}


Compiler output:
Main.java:18: error: incompatible types: int[] cannot be converted to double[]
        L=new int[N];
          ^
Main.java:22: error: bad operand types for binary operator '^'
        	L[j]=((X[j])^2+(Y[j])^2)^(0.5);
        	                        ^
  first type:  int
  second type: double
2 errors
Language: Java

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

Compiler output:
Main.java:3: error: class Temperature is public, should be declared in a file named Temperature.java
public class Temperature{
       ^
Main.java:8: error: no suitable constructor found for Scanner(no arguments)
  Scanner s=new Scanner();
            ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: Java

import java.util.*;
 
public class Temperature{
 
 
public static void main(String[] args){
  
  Scanner s=new Scanner();
  
int temp=s.nextInt();
  if(temp>30){
  System.out.print('Yes');
  }
  else{
  System.out.println('No');
  }
 
 
}
 
}

Compiler output:
Main.java:12: error: unclosed character literal
  System.out.print('Yes');
                   ^
Main.java:12: error: unclosed character literal
  System.out.print('Yes');
                       ^
Main.java:12: error: not a statement
  System.out.print('Yes');
                     ^
Main.java:15: error: unclosed character literal
  System.out.println('No');
                     ^
Main.java:15: error: unclosed character literal
  System.out.println('No');
                        ^
Main.java:15: error: not a statement
  System.out.println('No');
                       ^
6 errors
Language: C++

#include <iostream>

use namespace std;

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

Compiler output:
a.cc:3:1: error: 'use' does not name a type
    3 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if (X > 29){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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else {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;
#define rep(i,n) for(int i=0;i<(n);i++)
#define rep1(i,n) for(int i=1;i<(n);i++)
#define long long ll


int main(){
    int T;
    scanf("%d",&T);
    // while(T--){
    //     int l,r;
    //     scanf("%d %d",&l,&r);
    //     if(r< 2*l){
    //         cout<<"-1 -1\n";
    //     }
    //     else cout<<l<<" "<<2*l<<endl;
    // }
    if(T>=30)cout<<"YES";
    else cout<<"NO"
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:20: error: expected ';' before 'return'
   20 |     else cout<<"NO"
      |                    ^
      |                    ;
   21 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream>

use namespace std;

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

Compiler output:
a.cc:3:1: error: 'use' does not name a type
    3 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:15: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if (X > 29){cout << "Yes"} else {cout << "No"};
      |               ^~~~
      |               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:36: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   if (X > 29){cout << "Yes"} else {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: Java

import java.util.*;

Class Temperature{


public static void main(String args){
  
  Scanner s=new Scanner();
  
int temp=s.nextInt();
  if(temp>30){
  System.out.print('Yes');
  }
  else{
  System.out.println('No);
  }


}

}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
Class Temperature{
^
Main.java:12: error: unclosed character literal
  System.out.print('Yes');
                   ^
Main.java:12: error: unclosed character literal
  System.out.print('Yes');
                       ^
Main.java:12: error: not a statement
  System.out.print('Yes');
                     ^
Main.java:15: error: unclosed character literal
  System.out.println('No);
                     ^
Main.java:15: error: not a statement
  System.out.println('No);
                       ^
Main.java:6: 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)
Main.java:15: error: ';' expected
  System.out.println('No);
                        ^
Main.java:21: error: class, interface, enum, or record expected
}
^
9 errors
Language: C++

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

#define ll long long

int main()
{
	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	
	int x;
	
	cin >> x;
	
	if(x => 30 )
		cout << "Yes\n";
	else
		cout <<"No\n";
	
		

	
	return 0;
}

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

package Contest;

import java.util.Scanner;

public class AirConditioner {

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

}


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

#include<iostream>
using namespace std;

int main()
{
  double r;
  cin >> r;
  if(r>=30.0) cout <<"Yes";
  else cout <<"No";
  retunr 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e5 + 50;
int main()
{
    std::ios::sync_with_stdio(false);
    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:12: error: 'x' was not declared in this scope
    8 |     cin >> x;
      |            ^
Language: Java


import java.util.Scanner;

public class AirConditioner {

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

}


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