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

#include <iostream>

int main() {
  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; did you mean 'std::cin'?
    4 |   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:4:10: error: 'x' was not declared in this scope
    4 |   cin >> x;
      |          ^
a.cc:6:16: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (x >= 30) 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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>
 
#define rep(i,n) for(int i=0;i<(n);i++)
#define reps(i,n) for(int i=1;i<=(n);i++)
#define lol long long
#define SUM(n) ((n)+1)*(n)/2 //1〜nまでの総和を求める式
#define mp make_pair
#define fi first
#define se second
#define pu push_back
#define SYOU(x) fixed<<setprecision(x+1) //小数点桁数を指定する
#define abs(x,y) max(x,y)-min(x,y)
#define all(v) v.begin(),v.end()
#define UPDigit(a,b) (a+b-1)/b //小数点切り上げ
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fLL;
const int MOD = int(1e9)+7; 
using namespace std;
using pii = pair<lol, lol>;
typedef vector<int> vit;

//最大公約数
lol gcd(lol x, lol y){ return (y != 0 ? gcd(y, x % y) : x); }
//最小公倍数
lol lcm(lol x, lol y){ return ((x * y) / gcd(max(x, y), min(x, y))); }

signed main(void){
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  lol n, k;
  cin >> n >> k;
  lol a[n + 5];
  rep(i, n){
    cin >> a[i];
  }
  lol high = 1e9, low = 1;
  while(hight - low  > 1){
    lol mid = (high + low) / 2, sum = 0;
    rep(i, n){
      sum += (a[i] - 1) / mid;
    }
    //cout << mid << " " << sum << '\n';
    if(sum <= k){
      high = mid;
    } else {
      low = mid;
    }
  }
  cout << high << '\n';
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:9: error: 'hight' was not declared in this scope; did you mean 'high'?
   37 |   while(hight - low  > 1){
      |         ^~~~~
      |         high
Language: C++

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

Compiler output:
a.cc:4:14: error: expected initializer before ')' token
    4 | signed main()){
      |              ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  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:10:19: error: expected ';' before 'return'
   10 |     cout << "No\n"
      |                   ^
      |                   ;
   11 |   return 0;
      |   ~~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define ll long long

int main() {
	int x;
	cin>>x;
	if(x>=30){
		cout<<”YES”;
}
else
{
	cout<<”NO”;
}
return 0;
}


Compiler output:
a.cc:11:23: error: extended character ” is not valid in an identifier
   11 |                 cout<<”YES”;
      |                       ^
a.cc:11:23: error: extended character ” is not valid in an identifier
a.cc:15:15: error: extended character ” is not valid in an identifier
   15 |         cout<<”NO”;
      |               ^
a.cc:15:15: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:11:23: error: '\U0000201dYES\U0000201d' was not declared in this scope
   11 |                 cout<<”YES”;
      |                       ^~~~~
a.cc:15:15: error: '\U0000201dNO\U0000201d' was not declared in this scope
   15 |         cout<<”NO”;
      |               ^~~~
Language: C++

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

Compiler output:
a.cc:9:12: warning: multi-character character constant [-Wmultichar]
    9 |    cout << 'Yes' << endl;
      |            ^~~~~
a.cc:12:12: warning: multi-character character constant [-Wmultichar]
   12 |    cout << 'No' << endl;
      |            ^~~~
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '<' token
    8 |   if (30 =< x) {
      |           ^
a.cc:11:13: error: expected ';' before 'cout'
   11 |    (x <= 40)
      |             ^
      |             ;
   12 |    cout << 'No' << endl;
      |    ~~~~
Language: C++

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

Compiler output:
a.cc:8:12: error: extended character ≦ is not valid in an identifier
    8 |     if (30 ≦ x ≦ ４０) {
      |            ^
a.cc:8:16: error: extended character ≦ is not valid in an identifier
    8 |     if (30 ≦ x ≦ ４０) {
      |                ^
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |       x = 'Yes'
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |       X = 'No'
      |           ^~~~
a.cc: In function 'int main()':
a.cc:8:11: error: expected ')' before '\U00002266'
    8 |     if (30 ≦ x ≦ ４０) {
      |        ~  ^~
      |           )
a.cc:9:16: error: expected ';' before 'else'
    9 |       x = 'Yes'
      |                ^
      |                ;
   10 |     else
      |     ~~~~
Language: C++

#include<bits/stdc++.h>
#define pb  push_back
#define mxn 100005
#define fst first
#define snd second
typedef long long ll;
using namespace std;
// Debuging
template<class Debug>
Debug debug (string x,Debug y){
	cout <<"[" << x <<" : "<< y <<"] ";
}
int main()
{
	int n;
	cin >> n;
	if (x<=30)
		cout << "YES\n";
	else
		cout << "NO\n";
	


 return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'x' was not declared in this scope
   17 |         if (x<=30)
      |             ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

#include <stdio.h>

int main(){
	
	int X;
	scanf("%d", &X);
	
	(X>=30 && x<=40) ? printf("Yes") : printf("No");
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'x' was not declared in this scope
    8 |         (X>=30 && x<=40) ? printf("Yes") : printf("No");
      |                   ^
Language: C++

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

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

package atCoder174;

import java.util.Scanner;

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


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

import java.util.Scanner;

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


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

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


Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class A
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else
      |   ^~~~
Language: C

scanf("%d",&X)
  if(X>=30)
    printf("Yes")
    else
      printf("No")

Compiler output:
main.c:1:7: error: expected declaration specifiers or '...' before string constant
    1 | scanf("%d",&X)
      |       ^~~~
main.c:1:12: error: expected declaration specifiers or '...' before '&' token
    1 | scanf("%d",&X)
      |            ^
Language: C

#include<stdio.h>
int main(void)
{
  int X;
  -40<=X<=40;
  scanf("%d",&X);
  if(29<X<=40);
    printf("Yes");
    else;
      printf("No");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:5: error: 'else' without a previous 'if'
    9 |     else;
      |     ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'else' without a previous 'if'
    8 |     else;
      |     ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'else' without a previous 'if'
    8 |     else;
      |     ^~~~
Language: C

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

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

/*
                                                  __          __
      /\   |   |     /\   |  | |  |     /\   | / |  )   /\   |  )
     /__\  |   |    /__\  |--| |  |    /__\  |<  |-<   /__\  |-<
    /    \ |__ |__ /    \ |  | \__/   /    \ | \ |__) /    \ |  \

*/

#import<bits/stdc++.h>
typedef long long ll;
#define num 10000000
#define root 10000
#define forll(i,a,b,c) for(int i=a; i<=b; i+=c)
#define forll2(i,a,b,c) for(int i=a; i>=b; i-=c)
#define pb(n) push_back(n)

using namespace std;

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


Compiler output:
a.cc:9:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    9 | #import<bits/stdc++.h>
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:20:1: note: to match this '{'
   20 | {
      | ^
Language: C

#include <stdio.h>

int a;

int main(){
  scanf("%d", &a)
  
  if (a <= 30){
    printf("%s", 'Yes');
  }else{
  	printf("%s", 'No');
  }
  
}
  

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before 'if'
    6 |   scanf("%d", &a)
      |                  ^
      |                  ;
    7 | 
    8 |   if (a <= 30){
      |   ~~              
main.c:9:18: warning: multi-character character constant [-Wmultichar]
    9 |     printf("%s", 'Yes');
      |                  ^~~~~
main.c:11:22: warning: multi-character character constant [-Wmultichar]
   11 |         printf("%s", 'No');
      |                      ^~~~
Language: C

read X as int
2 if X >= 30:
3 write "Yes"
4 else:
5 write "No"


Compiler output:
main.c:1:1: error: unknown type name 'read'
    1 | read X as int
      | ^~~~
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'as'
    1 | read X as int
      |        ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
long long mx(long long a,long long b){if(a>b)return a;else return b;}
long long mn(long long a,long long b){if(a<b)return a;else return b;}
long long cei(long long a,long long b){if(a%b==0)return a/b;else return (a/b+1);}
const int MOD=1e9+7;
long long po(long long a,long long b){long long res=1;while(b>0){res=(res*a);res%=MOD;b--;}return res;}


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:15:27: error: expected ';' before 'else'
   15 | if(x>=30)cout<<"Yes"<<endl
      |                           ^
      |                           ;
   16 | else
      | ~~~~
Language: C++

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

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

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected expression before '<' token
    5 |         if( 30=<X)
      |                ^
Language: C++

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

Compiler output:
a.cc:10:7: warning: multi-character character constant [-Wmultichar]
   10 | cout<<'No\n';
      |       ^~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: expected ';' before 'if'
    6 | cin>>n
      |       ^
      |       ;
    7 | if(n>=30)
      | ~~     
a.cc:9:1: error: 'else' without a previous 'if'
    9 | else
      | ^~~~
Language: C++

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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected primary-expression before ';' token
    6 |   cin>>;
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int n,sum=0;
cin>>n>>d; 
double x_n,y_n,d;
for (int i=0;i<n;i++){
	cin>>x_n>>y_n;
	if (sqrt(x_n*x_n+y_n*y_n)>=d) sum+=1; 
}	
cout<<sum;
	return 0;
} 

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

#include "bits/stdc++.h"
#define int long long
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define REP(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define FOR(i, a) for (auto &i : a)
#define ALL(obj) begin(obj), end(obj)
#define MAX(x) *max_element(ALL(x))
#define MIN(x) *min_element(ALL(x))
#define SUM(x) accumulate(ALL(x), 0LL)
#define LOWER_BOUND(A, key) distance(A.begin(), lower_bound(ALL(A), key))
#define UPPER_BOUND(A, key) distance(A.begin(), upper_bound(ALL(A), key))

using namespace std;
const int MOD   = (int)(1e9 + 7);
const int INF   = (int)(1e13 + 7);
const double EPS = 1e-14;
const double PI = acos(-1);

int CEIL(int a, int b) { return (a >= 0 ? (a + (b - 1)) / b : (a - (b - 1)) / b); } //ceil() for int
int mod(int a, int b) { return a >= 0 ? a % b : a - (b * CEIL(a, b)); }             //always return positive num
int bpm(int a, int b) {                                                             //return x^y in order(log(y))
  int res = 1;
  for (a %= MOD; b; a = a * a % MOD, b >>= 1)
    if (b & 1) res = res * a % MOD;
  return res;
}

class AAirConditioner {
public:
  static void solve(istream &cin, ostream &cout) {
    int X;
    cin>>X;
    if (X >= 30)cout<<"Yes"<<endl;
    else{
      cout<<"No"<<endl;
    }
  }
};


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

#include "bits/stdc++.h"
using namespace std;
using lint = int64_t;
int main(){

	string X; cin >> X;
	lint x = stoll(X);string X; cin >> X;
	lint x = stoll(X);;
	cout << (30<=x ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: redeclaration of 'std::string X'
    7 |         lint x = stoll(X);string X; cin >> X;
      |                                  ^
a.cc:6:16: note: 'std::string X' previously declared here
    6 |         string X; cin >> X;
      |                ^
a.cc:8:14: error: redeclaration of 'lint x'
    8 |         lint x = stoll(X);;
      |              ^
a.cc:7:14: note: 'lint x' previously declared here
    7 |         lint x = stoll(X);string X; cin >> X;
      |              ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
using lint = int64_t;
int main(){

	;
	cout << (30<=x ? "Yes" : "No") << endl;
}


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

#include "bits/stdc++.h"
using namespace std;
using lint = int64_t
int main(){

	;
	cout << (30<=x ? "Yes" : "No") << endl;
}


Compiler output:
a.cc:3:14: error: two or more data types in declaration of 'type name'
    3 | using lint = int64_t
      |              ^~~~~~~
Language: C++

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

int main()
{
int x;
cin>>x;
if(x>=30) puts("Yes");
else puts("No");

}

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

#include <iostream>
using namespace std;

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

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

#include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
if(x<=30°c)
printf("%d",yes);
else
printf("%d",no)
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:9: error: stray '\302' in program
    6 | if(x<=30<U+00B0>c)
      |         ^~~~~~~~
main.c:6:9: error: expected ')' before 'c'
    6 | if(x<=30°c)
      |   ~     ^~
      |         )
main.c:7:13: error: 'yes' undeclared (first use in this function)
    7 | printf("%d",yes);
      |             ^~~
main.c:7:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:13: error: 'no' undeclared (first use in this function)
    9 | printf("%d",no)
      |             ^~
main.c:9:16: error: expected ';' before 'return'
    9 | printf("%d",no)
      |                ^
      |                ;
   10 | return 0;
      | ~~~~~~
Language: C++

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

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


#include <bits/stdc++.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     int x;cin>>x;
      |           ^~~
      |           std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

import numpy as np

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

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import numpy as np
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

Compiler output:
a.cc:13:5: error: expected unqualified-id before 'return'
   13 |     return 0;
      |     ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
	ll x;
cin >> x
x >= 30 ? cout << "YES\n" : cout << "NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected ';' before 'x'
    6 | cin >> x
      |         ^
      |         ;
    7 | x >= 30 ? cout << "YES\n" : cout << "NO\n";
      | ~
Language: C++

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

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:17: error: 'cout' was not declared in this scope
    5 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:5:34: error: 'endl' was not declared in this scope
    5 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:7:33: error: 'endl' was not declared in this scope
    7 |                 cout << "No" << endl;
      |                                 ^~~~
Language: C

#include<stdio.h>
#include<math.h>

int main(void){
	int i, n, x[200000], y[200000];
	int count;
	int d;
	double dist;
	
	count=0;
	scanf("%d %d", &n, &d);
	for(i=0; i<n; i++){
		scanf("%d %d", &x[i], &y[i]);
    }
	for(i=0; i<n; i++){
		dist=sqrt(double(x[i])*x[i]+double(y[i])*y[i]);
		if(dist <= d) count++;
	}
	printf("%d", count);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:27: error: expected expression before 'double'
   16 |                 dist=sqrt(double(x[i])*x[i]+double(y[i])*y[i]);
      |                           ^~~~~~
Language: C++

#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
// using namespace __gnu_pbds;
using namespace std;

#define ff first
#define ss second
#define int long long
#define pb push_back
#define mp make_pair
#define pii pair<int, int>
#define vi vector<int>
#define mii map<int, int>
#define pqb priority_queue<int>
#define pqs priority_queue<int, vi, greater<int>>
#define setbits(x) __builtin_popcountll(x)
#define zrobits(x) __builtin_ctzll(x)
#define mod 1000000007
#define inf 1e18
#define ps(x, y) fixed << setprecision(y) << x
#define mk(arr, n, type) type* arr = new type[n];
#define forn(i, n) for (int i = 1; i <= n; i++)
#define me0(x) memset(x, 0, sizeof(x))
#define me1(x) memset(x, -1, sizeof(x))
#define all(v) (v.begin(), v.end())
#define tests(x) \
    int x;       \
    cin >> x;    \
    while (x--)
// mt19937                 rng(chrono::steady_clock::now().time_since_epoch().count());

// typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;
int INF = 1e18;
const int N = 1e6 + 2;
void run() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
#ifndef ONLINE_JUDGE
    freopen("intput.txt", "r", stdin);
    freopen("o2.txt", "w", stdout);
#endif
}

int solve() {
    int n;
    cin>>n
    return n >=30;
}
int32_t main() {
    run();
    // tests(t) {
    cout << solve() << "\n";
    //}
    return 0;
}

Compiler output:
a.cc: In function 'long long int solve()':
a.cc:47:11: error: expected ';' before 'return'
   47 |     cin>>n
      |           ^
      |           ;
   48 |     return n >=30;
      |     ~~~~~~ 
a.cc:49:1: warning: no return statement in function returning non-void [-Wreturn-type]
   49 | }
      | ^
Language: C++

#include "stdc++.h"

using namespace::std;

int main(int argc, char *argv[]) {

    int x;
    cin >> x;

    (x > 30 || x == 30) ? cout << "Yes" << endl : cout << "No" << endl;

    return 0;
}






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

#include "stdc++.h"

using namespace::std;

int main(int argc, char *argv[]) {

    int x;
    cin >> x;

    printf("%s", ((x == 30) || (x > 30)) ? "Yes\n" : "No\n");


    return 0;
}






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

#include <iostream>

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:12:22: error: unable to find string literal operator 'operator""endl' with 'const char [1]', 'long unsigned int' arguments
   12 |         cout<<"YES"<<""endl;
      |                      ^~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  int k;
  cin>>k;
  
  int count=0;
  
  int curr = 7 % k;
  set<int> st;
  curr.insert(curr);
  while(curr){
    curr*=10;
    curr+=7;
    curr%=k;
    if(st.find(curr) != st.end()){
      cout<<-1<<endl;
      return 0;
    }
    count++;
    st.insert(curr);
  }
  count++;
  cout<<count<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: request for member 'insert' in 'curr', which is of non-class type 'int'
   13 |   curr.insert(curr);
      |        ^~~~~~
Language: C++

#include<bits/stdc++.h>

int main(){
  int t;
  cin>>t;
  if(t>=30){
    cout<<"YES";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7: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
      |                  ^~~~
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:6:6: error: expected ';' before 'x'
    6 |   cin x;
      |      ^~
      |      ;
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
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>>t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(t>=30) 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:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   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

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

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | x = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | x = int(input())
      |     ^~~
Language: Java

import java.util.*;
public class ac {

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

	}

}


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

import java.util.*;
public class main{

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

	}

}


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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ';' before string constant
    7 |     cout"No";
      |         ^~~~
      |         ;
Language: Java

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

Compiler output:
Main.java:3: error: incompatible types: String cannot be converted to int
    int n = new java.util.Scanner(System.in).nextLine();
                                                     ^
1 error
Language: C++

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

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


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

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

int main() {
  cin >> X;
  int X;
  if (X >= 30) {
    cont<< 'Yes' << endl;
  }
  else {
    count << 'No' << endl;
  }
}


Compiler output:
a.cc:8:12: warning: multi-character character constant [-Wmultichar]
    8 |     cont<< 'Yes' << endl;
      |            ^~~~~
a.cc:11:14: warning: multi-character character constant [-Wmultichar]
   11 |     count << 'No' << endl;
      |              ^~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'X' was not declared in this scope
    5 |   cin >> X;
      |          ^
a.cc:8:5: error: 'cont' was not declared in this scope; did you mean 'const'?
    8 |     cont<< 'Yes' << endl;
      |     ^~~~
      |     const
a.cc:11:11: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<<'
   11 |     count << 'No' << endl;
      |     ~~~~~~^~~~~~~
Language: C

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

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

#include<iostream.h>
using namespace std;

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


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

#includ<iostream.h>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<iostream.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includ<iostream.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"YES";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"NO";
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

#include<stdio.h>
int main(void)
{
	int X;
	scanf("%d", &X);

	if(X >= 30)
	{
		printf("Yes")
	}
	else
	{
		printf("No")
	}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:30: error: expected ';' before '}' token
    9 |                 printf("Yes")
      |                              ^
      |                              ;
   10 |         }
      |         ~                     
main.c:13:29: error: expected ';' before '}' token
   13 |                 printf("No")
      |                             ^
      |                             ;
   14 |         }
      |         ~
Language: C++

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

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

Compiler output:
a.cc:7:36: error: stray '\' in program
    7 |   x>=30?cout << "Yes\n':cout << "No\n";
      |                                    ^
a.cc:7:38: warning: missing terminating " character
    7 |   x>=30?cout << "Yes\n':cout << "No\n";
      |                                      ^
a.cc:7:38: error: missing terminating " character
    7 |   x>=30?cout << "Yes\n':cout << "No\n";
      |                                      ^~
a.cc: In function 'int main()':
a.cc:7:17: error: unable to find string literal operator 'operator""No' with 'const char [15]', 'long unsigned int' arguments
    7 |   x>=30?cout << "Yes\n':cout << "No\n";
      |                 ^~~~~~~~~~~~~~~~~~~
a.cc:7:36: error: expected ':' before 'n'
    7 |   x>=30?cout << "Yes\n':cout << "No\n";
      |                                    ^~
      |                                    :
a.cc:7:37: error: 'n' was not declared in this scope
    7 |   x>=30?cout << "Yes\n':cout << "No\n";
      |                                     ^
Language: C++

#include<iostream>
using namespace std;
class YesOrNo(int tem){
	int t=tem;
  	if(t>=30)
      cout<<"Yes";
  	else 
      cout<<"No";
}

Compiler output:
a.cc:3:15: error: expected unqualified-id before 'int'
    3 | class YesOrNo(int tem){
      |               ^~~
a.cc:3:15: error: expected ')' before 'int'
    3 | class YesOrNo(int tem){
      |              ~^~~
      |               )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'cour' was not declared in this scope
    7 |       cour<<"Yes";
      |       ^~~~
Language: C++

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

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

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

#inlcude<iostream>

using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<iostream>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"YES\n";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"NO\n";
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#inlcude<bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"YES\n";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"NO\n";
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#inlcude<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout<<"YES\n";
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout<<"NO\n";
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a;
      |   ^~~
      |   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:6:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (a>=30) 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:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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>

int main(){
  int temp;
  std::cin >> temp;
  if(temp > 30) std::cout << "Yes" << std::endl;
  else std::cout << "No" << std::endl;
}
~

Compiler output:
a.cc:9:2: error: expected class-name at end of input
    9 | ~
      |  ^
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:4:5: error: cannot declare '::main' to be a global variable
    4 | int main
      |     ^~~~
a.cc:6:1: error: expected primary-expression before 'int'
    6 | int X;
      | ^~~
a.cc:6:1: error: expected '}' before 'int'
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> X;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(X >= 30)
      | ^~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else { cout << "No"; }
      | ^~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include <iostream>

void main
{
 int x;
 std::cin >> X ;
    if(30 ≤ X )
    	{	
		std::cout << "Yes";
		}
    else
    	{
        std::cout << "No";
		}
}

Compiler output:
a.cc:7:11: error: extended character ≤ is not valid in an identifier
    7 |     if(30 ≤ X )
      |           ^
a.cc:3:6: error: variable or field 'main' declared void
    3 | void main
      |      ^~~~
a.cc:5:2: error: expected primary-expression before 'int'
    5 |  int x;
      |  ^~~
a.cc:5:2: error: expected '}' before 'int'
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
a.cc:6:7: error: 'cin' in namespace 'std' does not name a type
    6 |  std::cin >> X ;
      |       ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:5: error: expected unqualified-id before 'if'
    7 |     if(30 ≤ X )
      |     ^~
a.cc:11:5: error: expected unqualified-id before 'else'
   11 |     else
      |     ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before '}' token
    9 |     cout<<"no"}
      |               ^
      |               ;
Language: C++

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

Compiler output:
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 x;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: expected unqualified-id before 'if'
    5 |   if(x>=30){
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'else'
    7 |   else{
      |   ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: C

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

int main(){
 int N,D,x,y,c=0;
 float a,b,X[2*(int)pow(10,5)],Y[2*(int)pow(10,5)];
  scanf_s("%d",&N);
  scanf_s("%d",&D);
  for(int n=0;n<N-1;n++){
    scanf_s("%d",&x);
    scanf_s("%d",&y);
    X[n]=x;
    Y[n]=y;
  }
  for(int n=0;n<N-1;n++){
    a=pow(X[n],2)+pow(Y[n],2);
    b=sqrt(a);
    if(b<=D){
      c++;
    }
  }
  printf("%d\n",c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    8 |   scanf_s("%d",&N);
      |   ^~~~~~~
      |   scanf
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: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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"no";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <stdio.h>

int main()
{
	int a=-40,b=40;
	int x;
	scanf("%d",&x);
	(a<=x)&&(x<=b)?printf("Yes"):printf("No");
	return 0;
	

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected '}' at end of input
    9 |         return 0;
      |                  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^