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

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

int main() {
    string s;
    cin >> s;
    if ( s[0]==a[2] ) {
        puts("Yes");
    } else {
        puts("No");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'a' was not declared in this scope
    7 |     if ( s[0]==a[2] ) {
      |                ^
Language: C++

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

int main() {
    string s;
    if ( s[0]==a[2] ) {
        puts("Yes");
    } else {
        puts("No");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'a' was not declared in this scope
    6 |     if ( s[0]==a[2] ) {
      |                ^
Language: C++

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

int main() {
  int A,B,C,D;
  cin >> A >> B >> C >> D;
  
  if(min(B,D) - max(A,C) > 0){
   cout << min(B,D) - max(A,C) <, endl;
  }
  
  if(min(B,D) - max(A,C) < 1){
   cout << 0 << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected primary-expression before ',' token
    9 |    cout << min(B,D) - max(A,C) <, endl;
      |                                 ^
Language: C

#include<stdio.h>

int main(void)
{
  char 'N';
  scanf("%d",&N);
  if(N[0] == N[2])printf("YES");
  else printf("NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected identifier or '(' before 'N'
    5 |   char 'N';
      |        ^~~
main.c:6:15: error: 'N' undeclared (first use in this function)
    6 |   scanf("%d",&N);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
  char 'N'
  scanf("%d",&N);
  if(N[0] == N[2])printf("YES");
  else printf("NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:8: error: expected identifier or '(' before 'N'
    5 |   char 'N'
      |        ^~~
main.c:7:6: error: 'N' undeclared (first use in this function)
    7 |   if(N[0] == N[2])printf("YES");
      |      ^
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(void)
{
  int N;
  char 'A'
  scanf("%d",&N);
  if(N[0] == N[2])printf("YES");
  else printf("NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:8: error: expected identifier or '(' before 'A'
    6 |   char 'A'
      |        ^~~
main.c:8:7: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[0] == N[2])printf("YES");
      |       ^
main.c:8:15: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[0] == N[2])printf("YES");
      |               ^
Language: C

#include<stdio.h>

int main(void)
{
  int N;
  string N;
  scanf("%d",&N);
  if(N[0] == N[2])printf("YES");
  else printf("NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'string'; did you mean 'stdin'?
    6 |   string N;
      |   ^~~~~~
      |   stdin
main.c:6:10: error: redeclaration of 'N' with no linkage
    6 |   string N;
      |          ^
main.c:5:7: note: previous declaration of 'N' with type 'int'
    5 |   int N;
      |       ^
main.c:8:7: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[0] == N[2])printf("YES");
      |       ^
main.c:8:15: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[0] == N[2])printf("YES");
      |               ^
Language: C

#include<stdio.h>

int main(void)
{
  int N;
  string N;
  scanf("%d",&a);
  if(N[0] == N[2])printf("YES");
  else printf("NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'string'; did you mean 'stdin'?
    6 |   string N;
      |   ^~~~~~
      |   stdin
main.c:6:10: error: redeclaration of 'N' with no linkage
    6 |   string N;
      |          ^
main.c:5:7: note: previous declaration of 'N' with type 'int'
    5 |   int N;
      |       ^
main.c:7:15: error: 'a' undeclared (first use in this function)
    7 |   scanf("%d",&a);
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:7: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[0] == N[2])printf("YES");
      |       ^
main.c:8:15: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[0] == N[2])printf("YES");
      |               ^
Language: C

#include<stdio.h>

int main(void)
{
  int N;
  string N;
  scanf("%d",&a)
  if(N[0] == N[2])printf("YES");
  else printf("NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: unknown type name 'string'; did you mean 'stdin'?
    6 |   string N;
      |   ^~~~~~
      |   stdin
main.c:6:10: error: redeclaration of 'N' with no linkage
    6 |   string N;
      |          ^
main.c:5:7: note: previous declaration of 'N' with type 'int'
    5 |   int N;
      |       ^
main.c:7:15: error: 'a' undeclared (first use in this function)
    7 |   scanf("%d",&a)
      |               ^
main.c:7:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:17: error: expected ';' before 'if'
    7 |   scanf("%d",&a)
      |                 ^
      |                 ;
    8 |   if(N[0] == N[2])printf("YES");
      |   ~~             
main.c:9:3: error: 'else' without a previous 'if'
    9 |   else printf("NO");
      |   ^~~~
Language: C++

#include<stdio.h>
#include<string.h>

int main(){
	
	char str[100000];
	
	scanf("%s", str);
	
	char str2[100000];
	strcpy(str2, str);
	
//	printf("%s %s\n", str, strrev(str2));
	
	if(strcmp(str, strrev(str2)) == 0){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   15 |         if(strcmp(str, strrev(str2)) == 0){
      |                        ^~~~~~
      |                        strsep
Language: C

#include<stdio.h>
#include<string.h>

int main(){
	
	char str[100000];
	
	scanf("%s", str);
	
	char str2[100000];
	strcpy(str2, str);
	
//	printf("%s %s\n", str, strrev(str2));
	
	if(strcmp(str, strrev(str2)) == 0){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:24: error: implicit declaration of function 'strrev'; did you mean 'strsep'? [-Wimplicit-function-declaration]
   15 |         if(strcmp(str, strrev(str2)) == 0){
      |                        ^~~~~~
      |                        strsep
main.c:15:24: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
   15 |         if(strcmp(str, strrev(str2)) == 0){
      |                        ^~~~~~~~~~~~
      |                        |
      |                        int
In file included from main.c:2:
/usr/include/string.h:156:50: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C++

ｖ#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()

int main(){
    string s;
    cin>>s;
    if(s[0]==s[2])cout<<"Yes";
    else cout<<"No";

    return 0;
}

Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | ｖ#include <bits/stdc++.h>
      |   ^
a.cc:1:1: error: '\U0000ff56' does not name a type
    1 | ｖ#include <bits/stdc++.h>
      | ^~
a.cc: In function 'int main()':
a.cc:15:5: error: 'string' was not declared in this scope
   15 |     string s;
      |     ^~~~~~
a.cc:16:5: error: 'cin' was not declared in this scope
   16 |     cin>>s;
      |     ^~~
a.cc:16:10: error: 's' was not declared in this scope
   16 |     cin>>s;
      |          ^
a.cc:17:19: error: 'cout' was not declared in this scope
   17 |     if(s[0]==s[2])cout<<"Yes";
      |                   ^~~~
a.cc:18:10: error: 'cout' was not declared in this scope
   18 |     else cout<<"No";
      |          ^~~~
Language: C++

#include <iostream>
#include <bitset>
#include <vector>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <cmath>
#include <regex>
using namespace std;
using ll = long long int;
using dd = long double;
const ll MOD = 1e9 + 7;

vector<string> dfs(string s, ll depth, vector<char> symbol)
{
    vector<string> ret;
    if (depth == 0)
    {
        ret.push_back(s);
        return ret;
    }

    for (ll i = 0; i < symbol.size(); i++)
    {
        auto vec = dfs(s + symbol[i], depth - 1, symbol);
        for (auto &&e : vec)
        {
            ret.push_back(e);
        }
    }
    return ret;
}

ll gcd(ll a, ll b)
{
    if (a % b == 0)
    {
        return b;
    }
    return gcd(b, a % b);
}

enum Tenki
{
    Sunny,
    Cloudy,
    Rainy
};

int main()
{
    string N;
    cin >> n;

    cout << ((N[0] == N[2]) ? "Yes" : "No") << endl;
}

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

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

int main() {
  int n;
  cin >> n;
  int a = n / 100;
  int b = n % 10
  if (a == b) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'if'
   10 |   if (a == b) cout << "Yes" << endl;
      |   ^~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else cout << "No" << endl;
      |   ^~~~
Language: C++

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

int main() {
string d;
  cin >> d;
  if(s.at(0) == s.at(2)) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 's' was not declared in this scope
    7 |   if(s.at(0) == s.at(2)) cout << "Yes" << endl;
      |      ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (int)(n); i++)
#define REP(i,n) for (int i = 1; i < (int)(n); i++)
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define vout(x) rep(i,x.size()) cout << x[i] << " "
template<class T> bool chmin(T &a, T b) {if(a>b) {a=b;return 1;}return 0;}
template<class T> bool chmax(T &a, T b) {if(a<b) {a=b;return 1;}return 0;}
using namespace std;
using vint = vector<int>;
using vvint = vector<vector<int>>;
using ll = long long;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
using P = pair<int,int>;
const int inf = 1e9;
const ll inf_l = 1LL<<62;
const int MAX = 1e5;

int main() {
    string s; cin >> s;
    string s_r = reverse(all(s));
    if (s == s_r) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:25: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   22 |     string s_r = reverse(all(s));
      |                  ~~~~~~~^~~~~~~~
Language: C++

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

int main() {
   string N ;
  cin >> N ;
  
  if(N[0]==N[2]) cout << "Yes" << endl;
  else cout << "No" <, endl;
}



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

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

int main() {
   int N ;
  cin >> N ;
  
  if(N[0]==N[2]) cout << "Yes" << endl;
  else cout << "No" <, endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: invalid types 'int[int]' for array subscript
    8 |   if(N[0]==N[2]) cout << "Yes" << endl;
      |       ^
a.cc:8:13: error: invalid types 'int[int]' for array subscript
    8 |   if(N[0]==N[2]) cout << "Yes" << endl;
      |             ^
a.cc:9:22: error: expected primary-expression before ',' token
    9 |   else cout << "No" <, endl;
      |                      ^
Language: Java

import java.util.*;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        char[] n = sc.nextLine().toCharArray();

        if(char[0]==char[2]){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }

}


Compiler output:
Main.java:7: error: ']' expected
        if(char[0]==char[2]){
                ^
Main.java:7: error: ';' expected
        if(char[0]==char[2]){
                 ^
Main.java:7: error: ']' expected
        if(char[0]==char[2]){
                         ^
Main.java:7: error: not a statement
        if(char[0]==char[2]){
                        ^
Main.java:9: error: 'else' without 'if'
        }else{
         ^
5 errors
Language: C++

#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <regex>
#define REP(i,n) for(int i = 0; i < n; i++)
#define FOR(i,j,n) for(int i = j; i < n; i++)
#define RFOR(i,j,n) for(int i = j-1; i >= n; i--)
#define PREC(n) fixed << setprecision(n)
#define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; }
#define YesorNo(a) printf(a?"Yes\n":"No\n")
#define _LIBCPP_DEBUG 0
using namespace std;
int64_t MOD = 1000000007;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  bool f = false;
  if(s[0] == a[2]) f = true;
  YesorNo(f);
  return 0;
}
//templete by private_yusuke#include <cctype>


Compiler output:
a.cc: In function 'int main()':
a.cc:66:14: error: 'a' was not declared in this scope
   66 |   if(s[0] == a[2]) f = true;
      |              ^
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
string alphabet = "abcdefghijklmnopqrstuvwxyz";
string ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";

int main(){
  string s;
  cin >> s;
  if(s[0] == s[2])cout << "Yes" << endl;
  else << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected primary-expression before '<<' token
   12 |   else << "No" << endl;
      |        ^~
Language: C++

#include <math.h>
#include <algorithm>  //sort,二分探索,など
#include <array>
#include <bitset>         //固定長bit集合
#include <cmath>          //pow,logなど
#include <complex>        //複素数
#include <deque>          //両端アクセスのキュー
#include <functional>     //sortのgreater
#include <iomanip>        //setprecision(浮動小数点の出力の誤差)
#include <iostream>       //入出力
#include <map>            //map(辞書)s
#include <numeric>        //iota(整数列の生成),gcdとlcm(c++17)
#include <queue>          //キュー
#include <set>            //集合
#include <stack>          //スタック
#include <string>         //文字列
#include <unordered_map>  //イテレータあるけど順序保持しないmap
#include <unordered_set>  //イテレータあるけど順序保持しないset
#include <utility>        //pair
#include <vector>         //可変長配列

using namespace std;
typedef long long ll;

#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define repd(i, n) for (ll i = (ll)(n)-1; i >= 0; i--)
#define for (i, a, b) for (ll i = (a); i <= (b); i++)
#define ford(i, a, b) for (ll i = (a); i >= (b); i--)
#define all(x) (x).begin(), (x).end()  // sortなどの引数を省略したい
#define size(x) ((ll)(x).size())  // sizeをsize_tからllに直しておく
#define max(x) *max_element(ALL(x))
#define MAX(a, b)
#define min(a, b)
#define inf 1000000000000
#define mod 10000007
#define pb push_back
#define mp make_pair
#define F first
#define S second
int main() {
  int a, b, c, d;
  cin >> a >> b >> c >> d;
 int t = min(b, d)-MAX(a, c);
  if (b < c || d < a) {
    cout << "0" << endl;
  } else if (t < 0) {
    cout << "0" << endl;
  } else {
    cout << t << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:29: error: expected primary-expression before ';' token
   43 |  int t = min(b, d)-MAX(a, c);
      |                             ^
Language: C++

num = int(input())
lst = []
lst2 = []
while num > 0:
    lst.append(num%10)
    lst2.append(num%10)
    num //= 10
lst2.reverse()
if lst == lst2:
  print("Yes")
else:
  print("No")

Compiler output:
a.cc:1:1: error: 'num' does not name a type; did you mean 'enum'?
    1 | num = int(input())
      | ^~~
      | enum
Language: C++

#include<iostream>
using namespace std;

int main(void){
    string n;
    cin >> n;
    string ren = n;
    reverse(ren.begin(),ren.end());
    if(ren == n){
        cout <<"Yes";
    }else
    {
        cout << "No";
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'reverse' was not declared in this scope
    8 |     reverse(ren.begin(),ren.end());
      |     ^~~~~~~
Language: Java

import java.util.*;
class Main{
  public static void main(String[] args){
    Scanner stdIn=new Scanner(System.in);
    int N=stdIn.nextInt();
    int[] n=new int[3];
    for(int i=0;i<3;i++){
      n[i]=N%10;
      n/=10;
    }
    if(n[0]==n[2]){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:9: error: bad operand types for binary operator '/'
      n/=10;
       ^
  first type:  int[]
  second type: int
1 error
Language: Java

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();

		int x = a / 100;
		int y = (a - x * 100) / 10;
		int z = (a - x * 100 - y * 10);

		if(x == z) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

		System.out.println("test");

		sc.close();

	}

}


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

#include <bits/stdc++.h>
 
#define _overload(_1,_2,_3,name,...) name
#define _rep(i,n) _range(i,0,n)
#define _range(i,a,b) for(int i=(int)(a);i<(int)(b);++i)
#define rep(...) _overload(__VA_ARGS__,_range,_rep,)(__VA_ARGS__)
 
#define _rrep(i,n) _rrange(i,n,0)
#define _rrange(i,a,b) for(int i=(int)(a)-1;i>=(int)(b);--i)
#define rrep(...) _overload(__VA_ARGS__,_rrange,_rrep,)(__VA_ARGS__)
 
#define _all(arg) begin(arg),end(arg)
#define uniq(arg) sort(_all(arg)),(arg).erase(unique(_all(arg)),end(arg))
#define bit(n) (1LL<<(n))
 
// #define DEBUG
 
#ifdef DEBUG
    #define dump(...) fprintf(stderr, __VA_ARGS__)
#else
    #define dump(...)
#endif
 
template<class T>bool chmax(T &a, const T &b) { return (a<b)?(a=b,1):0;}
template<class T>bool chmin(T &a, const T &b) { return (b<a)?(a=b,1):0;}
 
using namespace std;
using ll=long long;
using vi=vector<int>;
using vll=vector<ll>;
 
const double EPS = 1e-10;
const double PI = acos(-1.0);
const ll INF = 1LL << 62;
const int inf = 1 << 30;
const ll MOD = 1000000007LL;
const int dx[4]={1,0,-1,0};
const int dy[4]={0,1,0,-1};
 
ll extgcd(ll a,ll b,ll& x,ll& y){x=1,y=0;ll g=a;if(b!=0) g=extgcd(b,a%b,y,x),y-=a/b*x;return g;}
ll ADD(const ll &a, const ll &b, const ll mod=MOD) { return (a+b)%mod;}
ll SUB(const ll &a, const ll &b, const ll mod=MOD) { return (a-b+mod)%mod;}
ll MUL(const ll &a, const ll &b, const ll mod=MOD) { return (1LL*a*b)%mod;}
ll DIV(const ll &a, const ll &b, const ll mod=MOD) {ll x,y; extgcd(b,mod,x,y);return MUL(a,(x+mod)%mod,mod);}
 
int main(void){
    cin.tie(0);
    ios::sync_with_stdio(false);

    string n; cin >> n;
    string res = (n == reverse(_all(n) ? "Yes":"No"));
    cout << res << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:33: error: could not convert 'std::end<__cxx11::basic_string<char> >(n)' from 'std::__cxx11::basic_string<char>::iterator' to 'bool'
   12 | #define _all(arg) begin(arg),end(arg)
      |                              ~~~^~~~~
      |                                 |
      |                                 std::__cxx11::basic_string<char>::iterator
a.cc:51:32: note: in expansion of macro '_all'
   51 |     string res = (n == reverse(_all(n) ? "Yes":"No"));
      |                                ^~~~
Language: C++

#include<iostream>
 
using namesoace std;

int main(){
  int n;
  
  if(n/100==n/10){
    cout<<"Yes";
  }else {
    cout<<"No";
  }
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesoace'
    3 | using namesoace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"No";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>

int main(){
  int n;
  
  if(n/100==n/10){
    cout<<"Yes";
  }else {
    cout<<"No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout<<"No";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
#include<string>
int mian(){
  string a;
  cin>>a;
  if(a[0]==a[2])cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  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 <bits/stdc++.h>
using namespace std;

int main(){
  int a,b,c,d;
  int ans=0;
  cin >> a >> b >> c >> d;
  
  if(b <= c) cout << 0 << endl;
  else if(b <= d && a <= c) ans = b-c;
  else if(b <= d && a >= c) ans = b-a;
  else if(d<=b && a <= c) ans = d-c;
  else if(d<=b && a >= c) ans = d-a;
  
  cout << and << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: expected identifier before '<<' token
   15 |   cout << and << endl;
      |               ^~
Language: C++

#include <iostream>
#include <algorithm>
#include <cstring>
#include <string>
#include <vector>

using namespace std;

int main() {
    string N;

    cin >> N;

    if (s[0] == s[2]) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 's' was not declared in this scope
   14 |     if (s[0] == s[2]) {
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid types 'int[int]' for array subscript
    6 |   if(n[0]==n[2]){
      |       ^
a.cc:6:13: error: invalid types 'int[int]' for array subscript
    6 |   if(n[0]==n[2]){
      |             ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){ 
    sting s;
    cin>>s;
    if(s[0]==s[2])cout<<"Yes";
    else cout<<"No";

 
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main(){ 
    sting s;
    cin s;
    if(s[0]==s[2])cout<<"Yes";
    else cout<<"No";

 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'sting' was not declared in this scope
    5 |     sting s;
      |     ^~~~~
a.cc:6:8: error: expected ';' before 's'
    6 |     cin s;
      |        ^~
      |        ;
a.cc:7:8: error: 's' was not declared in this scope
    7 |     if(s[0]==s[2])cout<<"Yes";
      |        ^
Language: C++

#include<stdio.h>

using namespace std;

int main(void)
{
  char n[4]; cin>>n;
  
  if(n[0]==n[2]){puts("Yes");}
  else{puts("No");}
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'cin' was not declared in this scope
    7 |   char n[4]; cin>>n;
      |              ^~~
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 |
Language: C++

#include<stdio.h>

using namespace std;

int main(void)
{
  char n[4]; cin>>n;
  
  if(c[0]==n[2]){puts("Yes");}
  else{puts("No");}
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'cin' was not declared in this scope
    7 |   char n[4]; cin>>n;
      |              ^~~
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 | 
a.cc:9:6: error: 'c' was not declared in this scope
    9 |   if(c[0]==n[2]){puts("Yes");}
      |      ^
Language: C++

#include <iostream>
#include <string>
#define repi(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,a) repi(i,0,a)
#define all(a) (a).begin(), (a).end()

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

std::string N;

int main()
{
  std::cin >> N;

  std::string R = N;

  std::reverse( all(R) );

  bool fl = true;

  rep( i, N.size() )
    fl &= N[i]==R[i];

  std::cout << (fl ? "Yes" : "No" ) << std::endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 'reverse' is not a member of 'std'
   18 |   std::reverse( all(R) );
      |        ^~~~~~~
Language: C++

#include <iostream>
#include <string>
#define repi(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,a) repi(i,0,a)
#define all(a) (a).begin(), (a).end()

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

std::string N;

int main()
{
  std::cin >> N;

  std::string R = N;

  std::reverse( all(R) );

  bool fl = true;
  
  rep( i, N.size() )
    fl &= N[i]==R[i];

  puts( fl ? "Yes" : "No" );

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 'reverse' is not a member of 'std'
   18 |   std::reverse( all(R) );
      |        ^~~~~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  int M = 100*N.at(2)+10*N.at(1)+N.at(0);
  if (N==M){
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   int M = 100*N.at(2)+10*N.at(1)+N.at(0);
      |                 ^~
a.cc:7:28: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   int M = 100*N.at(2)+10*N.at(1)+N.at(0);
      |                            ^~
a.cc:7:36: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |   int M = 100*N.at(2)+10*N.at(1)+N.at(0);
      |                                    ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, m, n) for(ll i = m;i < n;i++)
#define VSORT(v) sort(v.begin(), v.end());
#define VREV(v) reverse(v.begin(), v.end());
using namespace std;
using ll = long long;
using pll = pair<ll,ll>;
using vll = vector<ll>;
using vdouble = vector<double>;
using vstr = vector<string>;
typedef pair<int,int> P;
int dx[4] = {1, 0, -1, 0},dy[4] = {0, 1, 0, -1};
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}
template<class T> inline bool chmax(T& a, T b){if(a<b) {a=b; return 1;} return 0; }
template<class T> inline bool chmin(T& a, T b){if(a>b) {a=b; return 1;} return 0; }
const long long INF = 1LL << 60;
const long long MOD = 1000000007;
#include <iostream>

using namespace std;

int main() {
   int n,k;
   cin>>n;
   string l=n;
   if(l[0]==l[2])
     cout<<"yes";
   else
     cout<<"no";
     


   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   27 |    string l=n;
      |             ^
Language: C++

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

int main(){
    string n ; cin >> n;
    cout <<((s[0] == s[2])? "Yes":"No") << endl ; return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:14: error: 's' was not declared in this scope
   22 |     cout <<((s[0] == s[2])? "Yes":"No") << endl ; return 0;
      |              ^
Language: C++

#define judge
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> PII;
const int inf = 0x3f3f3f3f;
const int ninf = 0xcfcfcfcf;
const double pi = acos(-1.0);
static int faster_iostream = []() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  return 0;
}();
bool judge(string s) {
  for (int i = 0; i < s.size(); i++) {
    if (s[i] != s[s.size() - i - 1]) return false;
  }
  return true;
}
int main() {
#ifndef judge
  freopen("in.txt", "r", stdin);
  freopen("out.txt", "w", stdout);
#endif
  string s;
  cin >> s;
  if (judge(s)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc:14:18: error: expected ')' before 's'
   14 | bool judge(string s) {
      |           ~      ^~
      |                  )
a.cc: In function 'int main()':
a.cc:27:13: error: could not convert 's' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   27 |   if (judge(s)) {
      |            ~^~
      |             |
      |             std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main(){
  int n;
  cin >>n;
  long long ans = 1;
  rep(i,n){
    long long x;
    cin >>x;
    ans = ans/__gcd(ans,x)*x;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i,n){
      |       ^
a.cc:9:3: error: 'rep' was not declared in this scope
    9 |   rep(i,n){
      |   ^~~
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
using namespace std;
using ll = long long;
using ld = long double;
const int INF = (1<<30)-1;
const long long LINF = (1LL<<62)-1;
const long double PI = acos(-1.0L);
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }

signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  if (s[0] == s[2])
    cout << "Yes" << endl;
  else
    cout << "No" << endl;]
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:26: error: expected primary-expression before ']' token
   22 |     cout << "No" << endl;]
      |                          ^
Language: C++

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

int main(){
    //入力
    int N;
    cin >> N;
    //出力
    if(N.at(0)==N.at(2)){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'at' in 'N', which is of non-class type 'int'
    9 |     if(N.at(0)==N.at(2)){
      |          ^~
a.cc:9:19: error: request for member 'at' in 'N', which is of non-class type 'int'
    9 |     if(N.at(0)==N.at(2)){
      |                   ^~
Language: C++

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

int main() {
	string s;
	cin>>s;
	cout << (s[0] == s[2] ? "Yes" : "No") << endl;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string s;
      |         ^~~~~~
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>s;
      |         ^~~
a.cc:7:14: error: 's' was not declared in this scope
    7 |         cin>>s;
      |              ^
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << (s[0] == s[2] ? "Yes" : "No") << endl;
      |         ^~~~
a.cc:8:50: error: 'endl' was not declared in this scope
    8 |         cout << (s[0] == s[2] ? "Yes" : "No") << endl;
      |                                                  ^~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
  int a;
  cin >> a;
  if (n / 100 == n % 10) cout << "Yes";
  else cout << "No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'n' was not declared in this scope
    8 |   if (n / 100 == n % 10) cout << "Yes";
      |       ^
Language: C++

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

int main() {

int N,M;cin>>N;
  for(int i=N.size()-1; i>=0;i--){
    M.push_back(N.at(i));}
  if(N==M){cout<<"Yes"<<endl;}
  else{cout<<"No"<<endl;}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: request for member 'size' in 'N', which is of non-class type 'int'
    7 |   for(int i=N.size()-1; i>=0;i--){
      |               ^~~~
a.cc:8:7: error: request for member 'push_back' in 'M', which is of non-class type 'int'
    8 |     M.push_back(N.at(i));}
      |       ^~~~~~~~~
a.cc:8:19: error: request for member 'at' in 'N', which is of non-class type 'int'
    8 |     M.push_back(N.at(i));}
      |                   ^~
Language: C++

//  Created by conan1024hao in 2019.
//  Copyright © 2019 conan1024hao. All rights reserved.
//  専用ライブラリです、自由にコピーして構いません。
//  感谢看我的代码！Wechat:conan1024hao QQ:810396815
#pragma GCC optimize ("O3")
#include <iostream>
#include <iomanip>
#include <istream>
#include <ostream>
#include <sstream>
#include <iterator>
#include <vector>
#include <algorithm>
#include <queue>
#include <deque>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <utility>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <string>
#include <ctime>
#include <cctype>
#include <cstdlib>
#define INF 10e16
#define MOD 1000000007
#define  mod 1000000007
#define rep(i, a, n) for (ll i = a; i < (ll)(n); i++)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define eb emplace_back
#define mmax(x,y)(x>y?x:y)
#define mmin(x,y)(x<y?x:y)
#define chmax(x,y) x=mmax(x,y)
#define chmin(x,y) x=mmin(x,y)
#define all(x) (x).begin(),(x).end()
#define siz(x) (ll)(x).size()
#define PI acos(-1.0)
using namespace std;
//using Int=int_fast64_t;
typedef long long int ll;
typedef pair<ll,ll>Pll;
typedef pair<int,int>Pin;
long long GCD(long long a, long long b) { return b ? GCD(b, a%b) : a; }
long long LCM(long long a, long long b)  {return a/GCD(a,b)*b;}
int dx[8]={-1,0,1,0,1,1,-1,-1};
int dy[8]={0,-1,0,1,1,-1,1,-1};
char dir[4]={'u','l','d','r'};
ll cmp1(pair<ll,string>a,pair<ll,string> b){
        if(a.fi!=b.fi)
        return a.fi<b.fi;
        else
        return a.se<b.se;
}
//--------------------------------------------------------------------------


//---------------------------------------------------------------------------
int main(){//問題をちゃんと見ろ!!!!!!!!!!!!!!!!!      llか??????????        memset()!!!!!!!!!!!!       ペナを減らせ!!!!!!!!!!!!!
    cin.tie(0);
    ios::sync_with_stdio(false);
    //-------------------------------
    sring n;cin>>n;
    if(n[0]==n[2])
        cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    //-------------------------------
    return 0;
}
//---------------------------------------------------------------------------






Compiler output:
a.cc: In function 'int main()':
a.cc:68:5: error: 'sring' was not declared in this scope
   68 |     sring n;cin>>n;
      |     ^~~~~
a.cc:68:18: error: 'n' was not declared in this scope; did you mean 'yn'?
   68 |     sring n;cin>>n;
      |                  ^
      |                  yn
Language: C++

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected unqualified-id before '(' token
    7 |   if(n.(0) == n.(2)) cout << "Yes" << endl;
      |        ^
a.cc:7:17: error: expected unqualified-id before '(' token
    7 |   if(n.(0) == n.(2)) cout << "Yes" << endl;
      |                 ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string S; cin >> S;
  if(S[0]==S[2]){
    cout << "Yes"
    return 0;
  }
  
  cout << "No"
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before 'return'
    8 |     cout << "Yes"
      |                  ^
      |                  ;
    9 |     return 0;
      |     ~~~~~~        
a.cc:12:15: error: expected ';' before 'return'
   12 |   cout << "No"
      |               ^
      |               ;
   13 | 
   14 |   return 0;
      |   ~~~~~~
Language: C++

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define max0(a,b,c) max(max(a,b),c)
#define min0(a,b,c) min(min(a,b),c)
#define ft first
#define sc second
#define pb push_back
#define mp make_pair
#define mt make_tuple
#define all(v) (v).begin(),(v).end()
#define mod 1000000007
using namespace std;
using Graph = vector<vector<int>>;
typedef long long lint;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ldouble;
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<ull> ulvec;
typedef vector<double> dvec;
typedef vector<pair<int,int>> pvec;
typedef vector<pair<ll,ll>> plvec;
typedef vector<tuple<ll,ll,ll>> tvec;
typedef vector<string> svec;

int main(){
    vec a(3);
    int n;
    cin>>n;
    rep(i,3){
        a[i]=m%10;
        n/=10;
    }
    if(a[0]==a[2]) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:14: error: 'm' was not declared in this scope
   33 |         a[i]=m%10;
      |              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin s;
  if(s[0]==s[2])
    cout<<"Yes";
  else
    cout<<"No";
  
  return 0;
}

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

#include<stdio.h>
 
int main(){
	int a[3];
 
	for(i=0;i<3;i++){
	scanf("%d",&a[i]);
	}
 
 
	if(a[0] == a[3])printf("Yes\n");
	else printf("No\n");
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'i' undeclared (first use in this function)
    6 |         for(i=0;i<3;i++){
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.c>

int main(){
	int a[3];

	for(i=0;i<3;i++){
	scanf("%d",&a[i]);
	}


	if(a[0] == a[3])printf("Yes\n");
	else printf("No\n");
	
	return 0;
}

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

def main():
    i = list(map(int, input().split()))
    n = i[0]

    if n < 100 or 999 < n or isinstance(n, int) == False:
        return

    if(str(n[0]) == str(n[2])):
        print('Yes')
    else:
        print('No')

if __name__ == "__main__":
    main()

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
def main():
^
  (use --enable-preview to enable unnamed classes)
Main.java:1: error: ';' expected
def main():
          ^
Main.java:2: error: class, interface, enum, or record expected
    i = list(map(int, input().split()))
                 ^
Main.java:9: error: unclosed character literal
        print('Yes')
              ^
Main.java:9: error: unclosed character literal
        print('Yes')
                  ^
Main.java:11: error: unclosed character literal
        print('No')
              ^
Main.java:11: error: unclosed character literal
        print('No')
                 ^
7 errors
Language: C

#include<stdio.h>
int main(void){
 int num=0;
 int clock[num];
 int i=0;
 float max=0;
  int c=0;
  int result=0;
 scanf("%d",&num);
 for(i=0;i<num;i++){
 	scanf("%d",clock[i]);
   	if(clock[i]>max){max=clock[i];}
 }
 for(i=0;i<1000;i++){
 	for(int k=0;k<num;k++){
    	if(max*i%clock[k]==0){
    		c=0;
    	}
   		else{c=1;}
 	}
   	if(c==1){c==0;}
   	else{break;result=max*i;}
 }
  printf("%d",result);
}


Compiler output:
main.c: In function 'main':
main.c:16:17: error: invalid operands to binary % (have 'float' and 'int')
   16 |         if(max*i%clock[k]==0){
      |            ~~~~~^~~~~~~~~
      |               |       |
      |               float   int
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.next();
    String hundreds = s.substring(0, 1);
    String tens = s.substring(1, 2);
    String ones = s.substring(2, 3);
    
    String reverseOfS = hundreds + tens + ones;
    
    if (s.equals(reverseOfS)) {
      System.out.println("Yes");
    } else if {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:15: error: '(' expected
    } else if {
             ^
Main.java:15: error: illegal start of expression
    } else if {
              ^
2 errors
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    
    String s = sc.nextInt();
    String hundreds = s.substring(0, 1);
    String tens = s.substring(1, 2);
    String ones = s.substring(2, 3);
    
    String reverseOfS = hundreds + tens + ones;
    
    if (s.equals(reverseOfS)) {
      System.out.println("Yes");
    } else if {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:15: error: '(' expected
    } else if {
             ^
Main.java:15: error: illegal start of expression
    } else if {
              ^
2 errors
Language: C++

#include<bits/stdc++.h>

#define rep(i,n) for(int i = 0; i < (n); i++)
#define ll long long

using namespace std;

int main(){
  string n;
  cin>>n;
  
  string t=n;
  reverse(t,begin(), t.end());
  if(t==n){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: no matching function for call to 'begin()'
   13 |   reverse(t,begin(), t.end());
      |             ~~~~~^~
In file included from /usr/include/c++/14/bits/algorithmfwd.h:39,
                 from /usr/include/c++/14/bits/stl_algo.h:59,
                 from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/initializer_list:88:5: note: candidate: 'template<class _Tp> constexpr const _Tp* std::begin(initializer_list<_Tp>)'
   88 |     begin(initializer_list<_Tp> __ils) noexcept
      |     ^~~~~
/usr/include/c++/14/initializer_list:88:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/range_access.h:52:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(_Container&)'
   52 |     begin(_Container& __cont) -> decltype(__cont.begin())
      |     ^~~~~
/usr/include/c++/14/bits/range_access.h:52:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:63:5: note: candidate: 'template<class _Container> constexpr decltype (__cont.begin()) std::begin(const _Container&)'
   63 |     begin(const _Container& __cont) -> decltype(__cont.begin())
      |     ^~~~~
/usr/include/c++/14/bits/range_access.h:63:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/range_access.h:95:5: note: candidate: 'template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::begin(_Tp (&)[_Nm])'
   95 |     begin(_Tp (&__arr)[_Nm]) noexcept
      |     ^~~~~
/usr/include/c++/14/bits/range_access.h:95:5: note:   candidate expects 1 argument, 0 provided
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1227:5: note: candidate: 'template<class _Tp> _Tp* std::begin(valarray<_Tp>&)'
 1227 |     begin(valarray<_Tp>& __va) noexcept
      |     ^~~~~
/usr/include/c++/14/valarray:1227:5: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/valarray:1238:5: note: candidate: 'template<class _Tp> const _Tp* std::begin(const valarray<_Tp>&)'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
/usr/include/c++/14/valarray:1238:5: note:   candidate expects 1 argument, 0 provided
Language: C++

#incldue <iostream>
int main(){int n;std::cin>>n;std::cout<<(n/100^n%10?"No":"Yes");}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:2:23: error: 'cin' is not a member of 'std'
    2 | int main(){int n;std::cin>>n;std::cout<<(n/100^n%10?"No":"Yes");}
      |                       ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #incldue <iostream>
a.cc:2:35: error: 'cout' is not a member of 'std'
    2 | int main(){int n;std::cin>>n;std::cout<<(n/100^n%10?"No":"Yes");}
      |                                   ^~~~
a.cc:2:35: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <conio.h>
using namespace std;
main()
{
    char a,b;
    cin>>a>>b>>b;
    if(a==b)cout<<"Yes";
    else cout<<"No";
}


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