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

clude <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, n) for (ll i = 0; i < n; i++)
 
 
ll memo[20001][20001]; //各点の最短距離を記録したもの
 
int main()
{
    ll n;
    ll x;
    ll y;
    cin >> n >> x >> y;
    x--;
    y--;
    
    rep(i, n)
    {
        rep(j, n)
        {
            memo[i][j] = -1;
        }
    }
    rep(i, n - 1)
    {
        
        memo[i][i] = 0;
        memo[i][i + 1] = 1;
        memo[i + 1][i] = 1;
    }
    memo[n - 1][n - 1] = 0;
    memo[x][y] = 1;
    memo[y][x] = 1;
 
     for (ll k = 2; k < n; k++)
    {
        for (ll i = 0; i < n - 2; i++)
        {
          if (memo[i][i+k]!=-1){
          continue;
          }
 
 
            ll p = min(memo[i][i + k-1], memo[i+1][i + k]);
            ll j=labs(i-x)+labs(i+k-y);
            ll h=labs(i-y)+labs(i+k-x);
            ll g=min(p + 1,j+1);
            
          memo[i][i + k] = min(g,h+1);
            memo[i + k][i] = min(g,h+1);
        }
    }
    map<ll, ll> score;
    rep(i, n)
    {
        rep(j, n)
        {
            score[memo[i][j]] += 1;
          
        }
   
    
    }
  
 rep(i, n - 1)
    {
        cout << score[i+1]/2 << endl;
    }
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin >> n >> x >> y;
      |     ^~~
a.cc:45:20: error: 'min' was not declared in this scope; did you mean 'main'?
   45 |             ll p = min(memo[i][i + k-1], memo[i+1][i + k]);
      |                    ^~~
      |                    main
a.cc:46:18: error: 'labs' was not declared in this scope
   46 |             ll j=labs(i-x)+labs(i+k-y);
      |                  ^~~~
a.cc:54:5: error: 'map' was not declared in this scope
   54 |     map<ll, ll> score;
      |     ^~~
a.cc:3:12: error: expected primary-expression before 'long'
    3 | #define ll long long
      |            ^~~~
a.cc:54:9: note: in expansion of macro 'll'
   54 |     map<ll, ll> score;
      |         ^~
a.cc:59:13: error: 'score' was not declared in this scope
   59 |             score[memo[i][j]] += 1;
      |             ^~~~~
a.cc:68:9: error: 'cout' was not declared in this scope
   68 |         cout << score[i+1]/2 << endl;
      |         ^~~~
a.cc:68:17: error: 'score' was not declared in this scope
   68 |         cout << score[i+1]/2 << endl;
      |                 ^~~~~
a.cc:68:33: error: 'endl' was not declared in this scope
   68 |         cout << score[i+1]/2 << endl;
      |                                 ^~~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  
  if(S.at(2) == S.at(3)) {
  
    if (S.at(4) == S.at(5)) {
      cout << "Yes" << \n;
    }
  }
  else {
  cout << "No" << \n;
  }
}


Compiler output:
a.cc:11:24: error: stray '\' in program
   11 |       cout << "Yes" << \n;
      |                        ^
a.cc:15:19: error: stray '\' in program
   15 |   cout << "No" << \n;
      |                   ^
a.cc: In function 'int main()':
a.cc:11:25: error: 'n' was not declared in this scope
   11 |       cout << "Yes" << \n;
      |                         ^
a.cc:15:20: error: 'n' was not declared in this scope
   15 |   cout << "No" << \n;
      |                    ^
Language: C++

#include<algorithm>
#include<iostream>
#include<cstring>
#include<iomanip>
#include<sstream>
#include<cstdio>
#include<string>
#include<vector>
#include<bitset>
#include<queue>
#include<cmath>
#include<stack>
#include<set>
#include<map>
#define rep(i,x,n) for(int i=x;i<=n;i++)
#define per(i,n,x) for(int i=n;i>=x;i--)
#define sz(a) int(a.size())
#define rson mid+1,r,p<<1|1
#define pii pair<int,int>
#define lson l,mid,p<<1
#define ll long long
#define pb push_back
#define mp make_pair
#define se second
#define fi first
using namespace std;
const double eps=1e-8;
const int mod=1e9+7;
const int N=1e5+10;
const int inf=1e9;
char s[N];
int main(){
	//ios::sync_with_stdio(false);
	//freopen("in","r",stdin);
	cin>>s;
	int n=strlen(s);
	if(s[2]==s[3]&&s[4]==s[5]) puts("Yes");
	else puts("No")
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:24: error: expected ';' before 'return'
   38 |         else puts("No")
      |                        ^
      |                        ;
   39 |         return 0;
      |         ~~~~~~
Language: C++

signed main(){
  string s;
  if(s[2] == s[3] && s[4] == s[5]){
    cout << "Yes\n";
  else cout << "No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string s;
      |   ^~~~~~
a.cc:3:6: error: 's' was not declared in this scope
    3 |   if(s[2] == s[3] && s[4] == s[5]){
      |      ^
a.cc:4:5: error: 'cout' was not declared in this scope
    4 |     cout << "Yes\n";
      |     ^~~~
a.cc:5:3: error: expected '}' before 'else'
    5 |   else cout << "No\n";
      |   ^~~~
a.cc:3:35: note: to match this '{'
    3 |   if(s[2] == s[3] && s[4] == s[5]){
      |                                   ^
a.cc:5:8: error: 'cout' was not declared in this scope
    5 |   else cout << "No\n";
      |        ^~~~
Language: C++

#include <iostream>
#include <string>
int main(void){
  string s[6];
  std::cin >> s;
  if(s[2]==s[3] && s[4]==s[5]) std::cout << "Yes" << std::endl;
  else std::cout << "No" << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s[6];
      |   ^~~~~~
a.cc:4:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:15: error: 's' was not declared in this scope
    5 |   std::cin >> s;
      |               ^
Language: C

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

int main() {
    int N, X, Y;
    scanf_s("%d %d %d", &N, &X, &Y);
    vvi graph(N);
    graph[X - 1].push_back(Y - 1);
    graph[Y - 1].push_back(X - 1);

    rep(i, N - 1) {
        graph[i].push_back(i + 1);
        graph[i + 1].push_back(i);
    }
    queue<int> seen;

    vi dist(N, -1);
    vi cnt(N, 0);

    rep(i, N) {
        seen.push(i);
        dist[i] = 0;
        while (seen.size()) {
            int v = seen.front(); seen.pop();
            for (auto x : graph[v]) {
                if (dist[x] != -1) continue;
                seen.push(x); dist[x] = dist[v] + 1;
                cnt[dist[x] - 1]++;
            }
        }
        dist.assign(N, -1);
    }
    rep(i, N - 1) {
        printf("%d\n", cnt[i] / 2);
    }
}

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

#include <iostream>
#include <string>
using namespace std;
int main(){
  string s;
  char a,b,c,d;
  cin >> s;
  a=s[2];
  b=s[3];
  c=s[4];
  d=s[5];
  if ( a == b  && c == d ){cout << "yes"<<endl; }
  else {cout <<"no"<<endl; }
    return 0;


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

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

int main()
{
  string s;
  cin>>s;
  if((s[2]==s[3]) && (s[4]==s[5]]))
  {
    cout<<"Yes";
  }
  else 
  {
    cout<<"No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ')' before ']' token
    8 |   if((s[2]==s[3]) && (s[4]==s[5]]))
      |                      ~          ^
      |                                 )
a.cc:11:4: error: expected ')' before 'else'
   11 |   }
      |    ^
      |    )
   12 |   else
      |   ~~~~
a.cc:8:5: note: to match this '('
    8 |   if((s[2]==s[3]) && (s[4]==s[5]]))
      |     ^
Language: C++

#include <iostream>
#include <String>
using namespace std;


int main()
{
    string n;
    cin >> n;
    if(n[2]==n[3]&&n[4]==n[5]){cout << "Yes";}else{cout << "No";}
	return 0;
}

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

import java.util.*;

public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner scanner = new scanner(System.in);
        String s = scanner.next();
        if (s.charAt(2) == s.charAt(4) && s.charAt(4) == s.charAt(5)){
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}


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

import java.util.*;

public class Main {
    public static void main(String[] args) {
        // Your code here!
        Scanner scanner = new scanner(System.in);
        String s = scanner.next();
        if (s.charAt(2) == s.charAt(4) && s.charAt(4) == s.charAt(5)){
            System.out.println("Yes");
        } else {
            System.out.println("No")
        }
    }
}


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

#include "pch.h"
#include <iostream>

int main()
{
	char str[7];
	std::cin >> str;
	bool likeCoffee = false;
	
	if(str[2]==str[3])
	{
		if(str[4]==str[5])
		{
			likeCoffee = true;
		}
	}

	std::cout << (likeCoffee ? "Yes" : "No");

	return 0;
}


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

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

int main() {
	string str;

	cin >> str;

	if (str.at(3) && str.at(4) == "f" && str.at(5) && str.at(6) == "e") {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}


}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str.at(3) && str.at(4) == "f" && str.at(5) && str.at(6) == "e") {
      |                          ~~~~~~~~~~^~~~~~
a.cc:9:69: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str.at(3) && str.at(4) == "f" && str.at(5) && str.at(6) == "e") {
      |                                                           ~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
  if(str.at(2)==str.at(3) && str.at(4)=str.at(5)){cout << "Yes" << endl;}else{cout << "No" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: lvalue required as left operand of assignment
    7 |   if(str.at(2)==str.at(3) && str.at(4)=str.at(5)){cout << "Yes" << endl;}else{cout << "No" << endl;}
      |      ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
  if(str.at(2)==str.at(3) && str.at(4)==str.at(5)){cout << "Yes" << endl;}else{cout << No << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:88: error: 'No' was not declared in this scope
    7 |   if(str.at(2)==str.at(3) && str.at(4)==str.at(5)){cout << "Yes" << endl;}else{cout << No << endl;}
      |                                                                                        ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
  if(str.at(2)==str.at(3) && str.at(4)=str.at(5)){cout << "Yes" << endl;}else{cout << No << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: lvalue required as left operand of assignment
    7 |   if(str.at(2)==str.at(3) && str.at(4)=str.at(5)){cout << "Yes" << endl;}else{cout << No << endl;}
      |      ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
a.cc:7:87: error: 'No' was not declared in this scope
    7 |   if(str.at(2)==str.at(3) && str.at(4)=str.at(5)){cout << "Yes" << endl;}else{cout << No << endl;}
      |                                                                                       ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 's' was not declared in this scope
    8 |    if(S[2] == S[3] && s[4] == S[5]){
      |                       ^
Language: C++

#incldue<iostream>
#include<string>
using namespace std;
int main() {
  string s;
  cin >> s;
  cout << (s[2] == s[3] && s[4] == s[5] ? "Yes" : "No") << endl;
}

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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> s;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:7:3: error: 'cout' was not declared in this scope
    7 |   cout << (s[2] == s[3] && s[4] == s[5] ? "Yes" : "No") << endl;
      |   ^~~~
a.cc:7:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:60: error: 'endl' was not declared in this scope
    7 |   cout << (s[2] == s[3] && s[4] == s[5] ? "Yes" : "No") << endl;
      |                                                            ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

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

int main(){
  string str1;
  cin>>str1;
  if (str1(2)==str1(3) && str1(4)==str1(5)){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |       ~~~~^~~
a.cc:7:20: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |                ~~~~^~~
a.cc:7:31: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |                           ~~~~^~~
a.cc:7:40: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |                                    ~~~~^~~
Language: C++

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

int main(){
  string str1,
  cin>>str1;
  if (str1(2)==str1(3) && str1(4)==str1(5)){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected initializer before '>>' token
    6 |   cin>>str1;
      |      ^~
a.cc:7:11: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |       ~~~~^~~
a.cc:7:20: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |                ~~~~^~~
a.cc:7:31: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |                           ~~~~^~~
a.cc:7:40: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)'
    7 |   if (str1(2)==str1(3) && str1(4)==str1(5)){
      |                                    ~~~~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,N) for (ll i=0;i<N;i++)
#define REP(i,N) for (ll i=1;i<=N;i++)
 
ll N,M,A,B,C;
string S,T,U;
double n,m,a,b,c;
 
int main() {
	cin>>S;
  if (S[2]==S[3]&&S[4]==S[5]) cout<<"Yes";
  else cour<<"No";
	return 0;
}

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

#include <bits/stdc++.h>
typedef long long ll;
#define rep(i,N) for (ll i=0;i<N;i++)
#define REP(i,N) for (ll i=1;i<=N;i++)
 
ll N,M,A,B,C;
string S,T,U;
double n,m,a,b,c;
 
int main() {
	cin>>S;
  if (S[2]==S[3]&&S[4]==S[5]) cout<<"Yes";
  else cour<<"No";
	return 0;
}

Compiler output:
a.cc:7:1: error: 'string' does not name a type; did you mean 'stdin'?
    7 | string S,T,U;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |         cin>>S;
      |         ^~~
      |         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:11:14: error: 'S' was not declared in this scope
   11 |         cin>>S;
      |              ^
a.cc:12:31: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   if (S[2]==S[3]&&S[4]==S[5]) cout<<"Yes";
      |                               ^~~~
      |                               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:8: error: 'cour' was not declared in this scope
   13 |   else cour<<"No";
      |        ^~~~
Language: C++

#include <bits/stdc++.h>
typedef long long ll;
#define rep(i,N) for (ll i=0;i<N;i++)
#define REP(i,N) for (ll i=1;i<=N;i++)

ll N,M,A,B,C;
string S,T,U;
double n,m,a,b,c;

int main() {
	cin<<S;
  if (S[2]==S[3]&&S[4]==S[5]) cout<<"Yes";
  else cour<<"No";
	return 0;
}

Compiler output:
a.cc:7:1: error: 'string' does not name a type; did you mean 'stdin'?
    7 | string S,T,U;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |         cin<<S;
      |         ^~~
      |         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:11:14: error: 'S' was not declared in this scope
   11 |         cin<<S;
      |              ^
a.cc:12:31: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   if (S[2]==S[3]&&S[4]==S[5]) cout<<"Yes";
      |                               ^~~~
      |                               std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:8: error: 'cour' was not declared in this scope
   13 |   else cour<<"No";
      |        ^~~~
Language: Java



class b {
    public static void main(String[] args) {
        String s;
        Scanner input=new Scanner(System.in);
        s=input.nextLine();
        if(s.charAt(3)==s.charAt(4) && s.charAt(5)==s.charAt(6)){
            System.out.println("Yes");
        }
        else
            System.out.println("No");
    }
}


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

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

int main(void){
  	char S[6];
  	int i;
  	for(i=0;i<6;i++){
  		scanf("%s", S[i});
       }
    if(S[2]==S[3] && S[4]==S[5]){
      printf("Yes");
    }else{
      printf("No");
    }
}
                    
     
    
                   
              
                     

Compiler output:
main.c: In function 'main':
main.c:9:32: error: expected ']' before '}' token
    9 |                 scanf("%s", S[i});
      |                                ^
      |                                ]
main.c:9:32: error: expected ')' before '}' token
    9 |                 scanf("%s", S[i});
      |                      ~         ^
      |                                )
main.c:9:32: error: expected ';' before '}' token
    9 |                 scanf("%s", S[i});
      |                                ^
      |                                ;
main.c:9:33: error: expected statement before ')' token
    9 |                 scanf("%s", S[i});
      |                                 ^
main.c: At top level:
main.c:11:5: error: expected identifier or '(' before 'if'
   11 |     if(S[2]==S[3] && S[4]==S[5]){
      |     ^~
main.c:13:6: error: expected identifier or '(' before 'else'
   13 |     }else{
      |      ^~~~
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: Java

public class Main {
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    String s = sc.next();
    
    if(s.charAt(2) == s.charAt(4) && s.charAt(3) == s.charAt(5)) return true;
    return false;
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
  	Scanner sc = new Scanner(System.in);
  	^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
  	Scanner sc = new Scanner(System.in);
  	                 ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: incompatible types: unexpected return value
    if(s.charAt(2) == s.charAt(4) && s.charAt(3) == s.charAt(5)) return true;
                                                                        ^
Main.java:7: error: incompatible types: unexpected return value
    return false;
           ^
4 errors
Language: C

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define FOR(i,a,b) for(int i=(a); i<=(b); i++) 
#define rep(i,n); for(int i = 0; i < (n); i++)
#define chmin(a,b) if((a)>(b)) (a)=(b); 
#define chmax(a,b) if((a)<(b)) (a)=(b);
#define vi vector<int>
#define all(v) (v).begin(),(v).end()
#define pb push_back
int gcd(int a,int b){/*a>=0,b>=0,￢(a=b=0)*/
  while(min(a,b)>0){if(a<b)swap(a,b);a%=b;}return max(a,b);
}
int dx[]={0,1,0,-1,1,-1,-1,1};
int dy[]={1,0,-1,0,1,1,-1,-1};
const int MOD = 1e9+7;
const int INF = 1e18+10;

/*----------------------------------------------*/
signed main(){
  int n,x,y;
  cin>>n>>x>>y;
  x--;y--;
  vector<vi> d(n,vi (n,0));
  rep(i,n){
    rep(j,n) d[i][j]=abs(i-j);
  }
  rep(i,n){
    rep(j,n){
      chmin(d[i][j],abs(x-i)+abs(j-y)+1);
      chmin(d[i][j],abs(y-i)+abs(j-x)+1);
    }
  }
  vi ans(n+1);
  rep(i,n){
    rep(j,n){
      ans[d[i][j]]++;
    }
  }
  FOR(i,1,n-1) cout<<ans[i]/2<<endl;
  return 0;
}


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

#include<iostream>
using namespace std;
int main()
{
  string str;
  cin>>str;
  if(str[2]==str[3]&&str[4]==str[5]
     cout<<"Yes"<<endl;
  else
     cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected ';' before 'cout'
    7 |   if(str[2]==str[3]&&str[4]==str[5]
      |                                    ^
      |                                    ;
    8 |      cout<<"Yes"<<endl;
      |      ~~~~                           
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else
      |   ^~~~
a.cc:8:24: error: expected ')' before 'else'
    8 |      cout<<"Yes"<<endl;
      |                        ^
      |                        )
    9 |   else
      |   ~~~~                  
a.cc:7:5: note: to match this '('
    7 |   if(str[2]==str[3]&&str[4]==str[5]
      |     ^
Language: C++

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

struct stack{
  int elm;
  struct stack *next;
};

struct stack *Create_Stack(int n);
struct stack *push(struct stack *S,int n);
struct stack *pop(struct stack *S);

int main(){
  struct stack *S;
  S = Create_Stack(3);
  S = push(S,4); 
  printf("%d\n",S->elm);
  S = pop(S);
  printf("%d\n",S->elm);
  return 0;
}

struct stack * push(struct stack *S,int n){
  struct stack *new;
  new = Create_Stack(n);
  new->next = S;
  return new;
}

struct stack *Create_Stack(int n){
  struct stack *new;
  new = (struct stack *)malloc(sizeof(struct stack));
  new->elm = n;
  new->next = NULL;
  return new;
}

struct stack *pop(struct stack *S){
  return S->next;
}
  


Compiler output:
a.cc: In function 'stack* push(stack*, int)':
a.cc:24:17: error: expected unqualified-id before 'new'
   24 |   struct stack *new;
      |                 ^~~
a.cc:25:7: error: expected type-specifier before '=' token
   25 |   new = Create_Stack(n);
      |       ^
a.cc:26:6: error: expected type-specifier before '->' token
   26 |   new->next = S;
      |      ^~
a.cc:27:13: error: expected type-specifier before ';' token
   27 |   return new;
      |             ^
a.cc: In function 'stack* Create_Stack(int)':
a.cc:31:17: error: expected unqualified-id before 'new'
   31 |   struct stack *new;
      |                 ^~~
a.cc:32:7: error: expected type-specifier before '=' token
   32 |   new = (struct stack *)malloc(sizeof(struct stack));
      |       ^
a.cc:33:6: error: expected type-specifier before '->' token
   33 |   new->elm = n;
      |      ^~
a.cc:34:6: error: expected type-specifier before '->' token
   34 |   new->next = NULL;
      |      ^~
a.cc:35:13: error: expected type-specifier before ';' token
   35 |   return new;
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main(){
string str;
cin>>str;
cout<<(str[2]==str[3]&&str[4]==str[5])?"Yes":"No"<<endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ')' before '$$'
    7 |     if (s[2] == s[3] $$ s[4] == s[5] ) cout << "Yes" << endl;
      |        ~            ^~~
      |                     )
Language: C++

#include<iostream>
using namespace std;
int main()
 {
  string s;
  cin >> s;
  
  if (s.at[2] == s.at[3] && s.at[4] == s.at[5]) {
    cout << "Yes" << endl;
  }
  else { cout << "No" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[2] == s.at[3] && s.at[4] == s.at[5]) {
      |           ^
a.cc:8:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[2] == s.at[3] && s.at[4] == s.at[5]) {
      |                      ^
a.cc:8:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[2] == s.at[3] && s.at[4] == s.at[5]) {
      |                                 ^
a.cc:8:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[2] == s.at[3] && s.at[4] == s.at[5]) {
      |                                            ^
Language: C++

#include<iostream>
using namespace std;
int main()
 {
  string s;
  cin >> s;
  
  if (s.at[3] == s.at[4] && s.at[5] == s.at[6]) {
    cout << "Yes" << endl;
  }
  else { cout << "No" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[3] == s.at[4] && s.at[5] == s.at[6]) {
      |           ^
a.cc:8:22: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[3] == s.at[4] && s.at[5] == s.at[6]) {
      |                      ^
a.cc:8:33: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[3] == s.at[4] && s.at[5] == s.at[6]) {
      |                                 ^
a.cc:8:44: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
    8 |   if (s.at[3] == s.at[4] && s.at[5] == s.at[6]) {
      |                                            ^
Language: Java

import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String data = sc.nextLine();
      
      	char[] letter = new char [data.length()];
      
      	for (int i = 0; i < data.length(); i++ ) {
          letter[i] = letter.charAt(i);
        }
    
    if (letter[2] = letter[3] && letter[4] = letter[5] ) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
      
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
          letter[i] = letter.charAt(i);
                            ^
  symbol:   method charAt(int)
  location: variable letter of type char[]
Main.java:13: error: bad operand types for binary operator '&&'
    if (letter[2] = letter[3] && letter[4] = letter[5] ) {
                              ^
  first type:  char
  second type: char
Main.java:13: error: incompatible types: char cannot be converted to boolean
    if (letter[2] = letter[3] && letter[4] = letter[5] ) {
                  ^
3 errors
Language: C++

#include <bits/stdc++.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
using namespace std;
 
 
int main(int argc, char** argv){
	int s;
	cin >> s;
	if(s[2] == s[3] && s[4] == s[5]){
		cout << "Yes";
	}
	else{
		cout << "No";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |         if(s[2] == s[3] && s[4] == s[5]){
      |             ^
a.cc:9:21: error: invalid types 'int[int]' for array subscript
    9 |         if(s[2] == s[3] && s[4] == s[5]){
      |                     ^
a.cc:9:29: error: invalid types 'int[int]' for array subscript
    9 |         if(s[2] == s[3] && s[4] == s[5]){
      |                             ^
a.cc:9:37: error: invalid types 'int[int]' for array subscript
    9 |         if(s[2] == s[3] && s[4] == s[5]){
      |                                     ^
Language: C++

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

#define all(x) (x).begin(),(x).end()
#define fastio ios_base::sync_with_stdio(false)

typedef double db;
typedef long long ll;
typedef unsigned long long ull;

typedef long double ldb;
typedef pair <int,int> pii;
typedef pair <ll, ll> pll;

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

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

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

int main(){
string s;
  cin>>s;
  if(s[2] == s[3] && s[4] == s[5])
    	cout<<"Yes\n";
  else
    	count<<"No\n";

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: invalid operands of types '<unresolved overloaded function type>' and 'const char [4]' to binary 'operator<<'
   10 |         count<<"No\n";
      |         ~~~~~^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
    //cout<<"Hello World\n";
    int input,q1,q2,dd1,output;
    cin>>input; 
    
     q1 = input/500;
     //cout<<"q1:"<<q1<<endl;
     dd1 = input - (q1*500);
     //cout<<"dd1:"<<dd1<<endl;
     q2 = dd1/5;
     //cout<<"q2:"<<q2<<endl;
     output = q1*1000+q2*5;
     cout<<output<<;
     
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected primary-expression before ';' token
   18 |      cout<<output<<;
      |                    ^
Language: C++

# include <stdio.h>
int main()
{
  string s;
  cin<<s;
  if (s[2] == s[3] && s[4] == s[5])
  {
     cout>>"Yes";
  }
  
  else
  {
    cout >>"No";
  }
  
  retorn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope; did you mean 'stdin'?
    4 |   string s;
      |   ^~~~~~
      |   stdin
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin<<s;
      |   ^~~
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin<<s;
      |        ^
a.cc:8:6: error: 'cout' was not declared in this scope
    8 |      cout>>"Yes";
      |      ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout >>"No";
      |     ^~~~
a.cc:16:3: error: 'retorn' was not declared in this scope
   16 |   retorn 0;
      |   ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
  string s;
  cin >> s;
  if (s[2] == s[3] && s[4] == s[5) {
  	cout << "Yes";
  }
  else {
    cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ']' before ')' token
    8 |   if (s[2] == s[3] && s[4] == s[5) {
      |                                  ^
      |                                  ]
Language: C++

#include <iostream>

string str;

int main() {
  	cin >> str;
  	if (str[2] == str[3] && str[4] == str[5]) cout << "Yes\n";
  	else cout << "No\n";
}

Compiler output:
a.cc:3:1: error: 'string' does not name a type; did you mean 'stdin'?
    3 | string str;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> str;
      |         ^~~
      |         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:16: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |         cin >> str;
      |                ^~~
      |                std
a.cc:7:51: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if (str[2] == str[3] && str[4] == str[5]) cout << "Yes\n";
      |                                                   ^~~~
      |                                                   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:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         else cout << "No\n";
      |              ^~~~
      |              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 <cstdio>
#include <string>
using namespace std;

int main()
{
  string s;
  
  scanf("%s", &s);
  
  if(s.at(3)==s.at(4)&&s.at(5)==s.at(6))
  {
    printf("Yes");
  	fflus(stdout);
  }
  else
    printf("No");
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'fflus' was not declared in this scope; did you mean 'fflush'?
   14 |         fflus(stdout);
      |         ^~~~~
      |         fflush
Language: C++

<?php
$n = 200;
$wf = new Wf($n);
 
for($i = 0; $i < $n*$n; $i++){
    $wf->connect(rand(1,100),rand(1,100),rand(1,100)); 
}
$wf->solve();
 
/**
 * Warshall–Floyd
 * Attention: 1-origin
 **/
class Wf{
  public $d;
  public $n;
  function __construct($n)	{
    $this->n = $n;
    $array = array_fill(1, $n, 10**18);
    $this->d = array_fill(1, $n, $array);
    for($i = 1; $i <= $this->n; $i++){
        $this->d[$i][$i] = 0;
    }
  }
  function connect($a, $b = false, $c = 1){
    if(is_array($a))list($a, $b, $c) = $a;
    $this->d[$a][$b] = $c;
  }
  function connect2($a, $b = false, $c = 1){
    if(is_array($a))list($a, $b, $c) = $a;
    $this->d[$a][$b] = $c;
    $this->d[$b][$a] = $c;
  }
  function solve(){
    $d = $this->d;
    $n = $this->n;
    for($k = 1; $k <= $n; ++$k){
      $dk = $d[$k];
      for($i = 1; $i <= $n; ++$i){
        $di = &$d[$i];
        for($j = 1; $j <= $n; ++$j){
          if($di[$j] > $di[$k] + $dk[$j]){
            $di[$j] = $di[$k] + $dk[$j];
          }
        }
      }
    }
    return $this->d = $d;
  }
}


Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$wf' does not name a type
    3 | $wf = new Wf($n);
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'for'
    5 | for($i = 0; $i < $n*$n; $i++){
      | ^~~
a.cc:5:13: error: '$i' does not name a type
    5 | for($i = 0; $i < $n*$n; $i++){
      |             ^~
a.cc:5:25: error: '$i' does not name a type
    5 | for($i = 0; $i < $n*$n; $i++){
      |                         ^~
a.cc:8:1: error: '$wf' does not name a type
    8 | $wf->solve();
      | ^~~
a.cc:15:9: error: expected ':' before '$d'
   15 |   public $d;
      |         ^~~
      |         :
a.cc:15:10: error: '$d' does not name a type
   15 |   public $d;
      |          ^~
a.cc:16:9: error: expected ':' before '$n'
   16 |   public $n;
      |         ^~~
      |         :
a.cc:16:10: error: '$n' does not name a type
   16 |   public $n;
      |          ^~
a.cc:17:3: error: 'function' does not name a type; did you mean 'union'?
   17 |   function __construct($n)      {
      |   ^~~~~~~~
      |   union
a.cc:25:3: error: 'function' does not name a type; did you mean 'union'?
   25 |   function connect($a, $b = false, $c = 1){
      |   ^~~~~~~~
      |   union
a.cc:29:3: error: 'function' does not name a type; did you mean 'union'?
   29 |   function connect2($a, $b = false, $c = 1){
      |   ^~~~~~~~
      |   union
a.cc:34:3: error: 'function' does not name a type; did you mean 'union'?
   34 |   function solve(){
      |   ^~~~~~~~
      |   union
a.cc:50:2: error: expected ';' after class definition
   50 | }
      |  ^
      |  ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 cha a, b, c, d, e, f;
 cin >> a >> b >> c >> d >> e >> f;
 if ((c == d) && (e == f)){
    cout << "Yes" << endl;
 }
 else{
   cout << "No" << endl;
 }
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cha' was not declared in this scope; did you mean 'char'?
    5 |  cha a, b, c, d, e, f;
      |  ^~~
      |  char
a.cc:6:9: error: 'a' was not declared in this scope
    6 |  cin >> a >> b >> c >> d >> e >> f;
      |         ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |  cin >> a >> b >> c >> d >> e >> f;
      |              ^
a.cc:6:19: error: 'c' was not declared in this scope
    6 |  cin >> a >> b >> c >> d >> e >> f;
      |                   ^
a.cc:6:24: error: 'd' was not declared in this scope
    6 |  cin >> a >> b >> c >> d >> e >> f;
      |                        ^
a.cc:6:29: error: 'e' was not declared in this scope
    6 |  cin >> a >> b >> c >> d >> e >> f;
      |                             ^
a.cc:6:34: error: 'f' was not declared in this scope
    6 |  cin >> a >> b >> c >> d >> e >> f;
      |                                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  cin >> a >> b >> c >> d >> e >> f;
 if ((c == d) && (e == f)){
    cout << "Yes" << endl;
 }
 else{
   cout << "No" << endl;
 }
   
}


Compiler output:
a.cc:3:1: error: extended character   is not valid in an identifier
    3 |  
      | ^
a.cc:6:1: error: extended character   is not valid in an identifier
    6 |  if ((c == d) && (e == f)){
      | ^
a.cc:3:1: error: '\U000000a0' does not name a type
    3 |  
      | ^
Language: C++

<?php
$n = 300;
$wf = new Wf($n);

for($i = 0; $i < $n*$n; $i++){
    $wf->connect(rand(1,100),rand(1,100),rand(1,100)); 
}
$wf->solve();

/**
 * Warshall–Floyd
 * Attention: 1-origin
 **/
class Wf{
  public $d;
  public $n;
  function __construct($n)	{
    $this->n = $n;
    $array = array_fill(1, $n, 10**18);
    $this->d = array_fill(1, $n, $array);
    for($i = 1; $i <= $this->n; $i++){
        $this->d[$i][$i] = 0;
    }
  }
  function connect($a, $b = false, $c = 1){
    if(is_array($a))list($a, $b, $c) = $a;
    $this->d[$a][$b] = $c;
  }
  function connect2($a, $b = false, $c = 1){
    if(is_array($a))list($a, $b, $c) = $a;
    $this->d[$a][$b] = $c;
    $this->d[$b][$a] = $c;
  }
  function solve(){
    $d = $this->d;
    $n = $this->n;
    for($k = 1; $k <= $n; ++$k){
      $dk = $d[$k];
      for($i = 1; $i <= $n; ++$i){
        $di = &$d[$i];
        for($j = 1; $j <= $n; ++$j){
          if($di[$j] > $di[$k] + $dk[$j]){
            $di[$j] = $di[$k] + $dk[$j];
          }
        }
      }
    }
    return $this->d = $d;
  }
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: '$wf' does not name a type
    3 | $wf = new Wf($n);
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'for'
    5 | for($i = 0; $i < $n*$n; $i++){
      | ^~~
a.cc:5:13: error: '$i' does not name a type
    5 | for($i = 0; $i < $n*$n; $i++){
      |             ^~
a.cc:5:25: error: '$i' does not name a type
    5 | for($i = 0; $i < $n*$n; $i++){
      |                         ^~
a.cc:8:1: error: '$wf' does not name a type
    8 | $wf->solve();
      | ^~~
a.cc:15:9: error: expected ':' before '$d'
   15 |   public $d;
      |         ^~~
      |         :
a.cc:15:10: error: '$d' does not name a type
   15 |   public $d;
      |          ^~
a.cc:16:9: error: expected ':' before '$n'
   16 |   public $n;
      |         ^~~
      |         :
a.cc:16:10: error: '$n' does not name a type
   16 |   public $n;
      |          ^~
a.cc:17:3: error: 'function' does not name a type; did you mean 'union'?
   17 |   function __construct($n)      {
      |   ^~~~~~~~
      |   union
a.cc:25:3: error: 'function' does not name a type; did you mean 'union'?
   25 |   function connect($a, $b = false, $c = 1){
      |   ^~~~~~~~
      |   union
a.cc:29:3: error: 'function' does not name a type; did you mean 'union'?
   29 |   function connect2($a, $b = false, $c = 1){
      |   ^~~~~~~~
      |   union
a.cc:34:3: error: 'function' does not name a type; did you mean 'union'?
   34 |   function solve(){
      |   ^~~~~~~~
      |   union
a.cc:50:2: error: expected ';' after class definition
   50 | }
      |  ^
      |  ;
Language: C++

#include <stdio.h>
 
int main(void){
	char* S[6];
	
  	scanf("%c");
  	if(S[3]==S[4]){
      if(S[5]==S[6]){
      	printf("yes\n");
      }
    }
    else if{
        printf("no\n");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected '(' before '{' token
   12 |     else if{
      |            ^
      |            (
Language: C++

#include <stdio.h>

int main(void){
	char S[6];
	
  	scanf("%c");
  	if(S[3]==S[4]){
      else if(S[5]==S[6]){
      	printf("yes\n");
      }
      else{
        printf("no\n");
      }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: expected '}' before 'else'
    8 |       else if(S[5]==S[6]){
      |       ^~~~
a.cc:7:23: note: to match this '{'
    7 |         if(S[3]==S[4]){
      |                       ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C

#include <stdio.h>

int main(){
     char s[6];
     for(int i = 0; i < 6; i++){
       scanf("%c",s[i]);
       }
     if(s[2] == s[3] && s[4] == s[5]){
       print("Yes");
       } else {
       print("No");
       }
  }

Compiler output:
main.c: In function 'main':
main.c:9:8: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |        print("Yes");
      |        ^~~~~
      |        printf
Language: C++

#include<stdio.h>
#include<stdlib.h>
int n;
int alllength;
int length;
int distance;
int maxmum=0;
int main(){
  scanf("%d",&alllength);
  scanf("%d",&n);
  int array[n];
  for(int i=0;i<n;i++){
    scanf("%d",&array[i]);
  }
   maxmum=alllength-array[n-1]+arry[0];
    for(int i=0;i<(n-1);i++){
      distance=abs(array[i+1]-array[i]);
    	if(maxmum<distance){
          maxmum=distance;
        }
     }
   
  
  length=(alllength-maxmum);
  printf("%d",length);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:32: error: 'arry' was not declared in this scope; did you mean 'array'?
   15 |    maxmum=alllength-array[n-1]+arry[0];
      |                                ^~~~
      |                                array