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

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


int main() {
 int a, b;
 cin >> a >> b;
 
 if(a == 1)(b == 2) {
  cout << 3 << endl;
 }
 else if(a == 1)(b == 3) {
  cout << 2 << endl;
 }
 else if(a == 2 )(b == 1) {
  cout << 3 << endl;
 }
 else if(a == 2 )(b == 3) {
  cout << 1 << endl;
 }
 else if(a == 3 )(b == 1) {
  cout << 2 << endl;
 }
  else if(a == 3 )(b == 2) {
 cout << 1 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '{' token
    9 |  if(a == 1)(b == 2) {
      |                    ^~
      |                    ;
a.cc:12:25: error: expected ';' before '{' token
   12 |  else if(a == 1)(b == 3) {
      |                         ^~
      |                         ;
a.cc:15:26: error: expected ';' before '{' token
   15 |  else if(a == 2 )(b == 1) {
      |                          ^~
      |                          ;
a.cc:18:26: error: expected ';' before '{' token
   18 |  else if(a == 2 )(b == 3) {
      |                          ^~
      |                          ;
a.cc:21:26: error: expected ';' before '{' token
   21 |  else if(a == 3 )(b == 1) {
      |                          ^~
      |                          ;
a.cc:24:27: error: expected ';' before '{' token
   24 |   else if(a == 3 )(b == 2) {
      |                           ^~
      |                           ;
Language: C++

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


int main() {
 int a, b;
 cin >> a >> b;
 
 if(a == 1 b == 2) {
  cout << 3 << endl;
 }
 else if(a == 1 b == 3) {
  cout << 2 << endl;
 }
 else if(a == 2  b == 1) {
  cout << 3 << endl;
 }
 else if(a == 2  b == 3) {
  cout << 1 << endl;
 }
 else if(a == 3  b == 1) {
  cout << 2 << endl;
 }
  else if(a == 3  b == 2) {
 cout << 1 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected ')' before 'b'
    9 |  if(a == 1 b == 2) {
      |    ~      ^~
      |           )
a.cc:12:16: error: expected ')' before 'b'
   12 |  else if(a == 1 b == 3) {
      |         ~      ^~
      |                )
a.cc:15:16: error: expected ')' before 'b'
   15 |  else if(a == 2  b == 1) {
      |         ~      ^ ~
      |                )
a.cc:18:16: error: expected ')' before 'b'
   18 |  else if(a == 2  b == 3) {
      |         ~      ^ ~
      |                )
a.cc:21:16: error: expected ')' before 'b'
   21 |  else if(a == 3  b == 1) {
      |         ~      ^ ~
      |                )
a.cc:24:17: error: expected ')' before 'b'
   24 |   else if(a == 3  b == 2) {
      |          ~      ^ ~
      |                 )
Language: C++

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


int main() {
 int a, b;
 cin >> a >> b;
 
 if(a == 1 )(b == 2) {
  cout << 3 << endl;
 }
 else if(a == 1 )(b == 3) {
  cout << 2 << endl;
 }
 else if(a == 2 )(b == 1) {
  cout << 3 << endl;
 }
 else if(a == 2 )(b == 3) {
  cout << 1 << endl;
 }
 else if(a == 3 )(b == 1) {
  cout << 2 << endl;
 }
  else if(a == 3 )(b == 2) {
 cout << 1 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '{' token
    9 |  if(a == 1 )(b == 2) {
      |                     ^~
      |                     ;
a.cc:12:26: error: expected ';' before '{' token
   12 |  else if(a == 1 )(b == 3) {
      |                          ^~
      |                          ;
a.cc:15:26: error: expected ';' before '{' token
   15 |  else if(a == 2 )(b == 1) {
      |                          ^~
      |                          ;
a.cc:18:26: error: expected ';' before '{' token
   18 |  else if(a == 2 )(b == 3) {
      |                          ^~
      |                          ;
a.cc:21:26: error: expected ';' before '{' token
   21 |  else if(a == 3 )(b == 1) {
      |                          ^~
      |                          ;
a.cc:24:27: error: expected ';' before '{' token
   24 |   else if(a == 3 )(b == 2) {
      |                           ^~
      |                           ;
Language: C++

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


int main() {
 int a, b;
 cin >> a >> b;
 
 if(a == 1 )(b == 2) {
 cout << 3 << endl;
 }
 else if(a == 1 )(b == 3) {
 cout << 2 << endl;
 }
  else if(a == 2 )(b == 1) {
 cout << 3 << endl;
 }
  else if(a == 2 )(b == 3) {
 cout << 1 << endl;
 }
  else if(a == 3 )(b == 1) {
 cout << 2 << endl;
 }
  else if(a == 3 )(b == 2) {
 cout << 1 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '{' token
    9 |  if(a == 1 )(b == 2) {
      |                     ^~
      |                     ;
a.cc:12:26: error: expected ';' before '{' token
   12 |  else if(a == 1 )(b == 3) {
      |                          ^~
      |                          ;
a.cc:15:27: error: expected ';' before '{' token
   15 |   else if(a == 2 )(b == 1) {
      |                           ^~
      |                           ;
a.cc:18:27: error: expected ';' before '{' token
   18 |   else if(a == 2 )(b == 3) {
      |                           ^~
      |                           ;
a.cc:21:27: error: expected ';' before '{' token
   21 |   else if(a == 3 )(b == 1) {
      |                           ^~
      |                           ;
a.cc:24:27: error: expected ';' before '{' token
   24 |   else if(a == 3 )(b == 2) {
      |                           ^~
      |                           ;
Language: C++

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


int main() {
 int a, b;
 cin >> a >> b;
 
 if(a == 1 )(b == 2){
 cout << 3 << endl;
 }
 else if(a == 1 )(b == 3){
 cout << 2 << endl;
 }
  else if(a == 2 )(b == 1){
 cout << 3 << endl;
 }
  else if(a == 2 )(b == 3){
 cout << 1 << endl;
 }
  else if(a == 3 )(b == 1){
 cout << 2 << endl;
 }
  else if(a == 3 )(b == 2){
 cout << 1 << endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '{' token
    9 |  if(a == 1 )(b == 2){
      |                     ^
      |                     ;
a.cc:12:26: error: expected ';' before '{' token
   12 |  else if(a == 1 )(b == 3){
      |                          ^
      |                          ;
a.cc:15:27: error: expected ';' before '{' token
   15 |   else if(a == 2 )(b == 1){
      |                           ^
      |                           ;
a.cc:18:27: error: expected ';' before '{' token
   18 |   else if(a == 2 )(b == 3){
      |                           ^
      |                           ;
a.cc:21:27: error: expected ';' before '{' token
   21 |   else if(a == 3 )(b == 1){
      |                           ^
      |                           ;
a.cc:24:27: error: expected ';' before '{' token
   24 |   else if(a == 3 )(b == 2){
      |                           ^
      |                           ;
Language: C++

int main(){
	int a,b;
	cin >> a >> b;
	cout << (a ^ b) << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> a >> b;
      |         ^~~
a.cc:4:9: error: 'cout' was not declared in this scope
    4 |         cout << (a ^ b) << endl;
      |         ^~~~
a.cc:4:28: error: 'endl' was not declared in this scope
    4 |         cout << (a ^ b) << endl;
      |                            ^~~~
Language: C++

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

signed main(){
  int a,b;cin>>a>>b;cout<<a^b<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:30: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |   int a,b;cin>>a>>b;cout<<a^b<<endl;
      |                             ~^~~~~~
Language: C++

import math
from math import ceil
from math import factorial
from collections import Counter
from operator import itemgetter
import bisect
ii = lambda: int(input())
iia = lambda: list(map(int,input().split()))
isa = lambda: list(input().split())

a = ii()
b = ii()

print(6-a-b)

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

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
#define REP(i, a, b) for(int i = a, i##_len = (b); i < i##_len; ++i)

int main()
{
    bool ans[3] = {true, true, true};
    for(int i = 0; i < 2; ++i) {
        int tmp;
        cin >> tmp;
        ans[tmp-1] = false;
    }
    for(int i = 0; i < 3; ++i) if(ans[i]) cout << i+1 << endl;
    return 0;

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

#include <ctime>
 
#include <iostream>
#include <algorithm>
 
using namespace std;
int main() {
    long long int n;
    cin>>n;
    if(n%2!=0)
        cout<<'0'<<endl;
    else if(n==0)
        cout<<'1'<<endl;
        
    else
    {
        long long int c=-1;
      long long int d=0,n1=n/2;
        long long int x=n/2;
       
        while(x>0)
        {
            x/=5;
            c++;
        }
       
    for(int i=1;i<=(c);i++)
    {
        d+=n1/(10*((long long int)pow(5,i)));
        
    }
       cout<<d<<endl;
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:35: error: 'pow' was not declared in this scope
   29 |         d+=n1/(10*((long long int)pow(5,i)));
      |                                   ^~~
Language: C++

#include<iostream>

int main(){
  	int A,B;
  	cin >> A >> B;
	cout << 6-A-B << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> A >> B;
      |         ^~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |         cout << 6-A-B << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |         cout << 6-A-B << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(void){
    int a,b;

    cin >> a;
    cin >> b;

    if(a==1){
        if(b==2){
            cout << 3;
        }else{
            cout << 2:
        }
    }

    if(a==2){
        if(b==1){
            cout << 3;
        }else{
            cout << 1:
        }
    }

    if(a==3){
        if(b==1){
            cout << 2;
        }else{
            cout << 1:
        }
    }


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before ':' token
   16 |             cout << 2:
      |                      ^
      |                      ;
a.cc:24:22: error: expected ';' before ':' token
   24 |             cout << 1:
      |                      ^
      |                      ;
a.cc:32:22: error: expected ';' before ':' token
   32 |             cout << 1:
      |                      ^
      |                      ;
Language: C++

include<bits/stdc++.h>
int main(void){
    int a_arr[3]={1,2,3},A,B;
    vector<int> v(a_arr,end(a_arr));
    cin>>A;
    cin>>B;
    auto rema = remove_if(v.begin(),v.end(),[&](int value){return value==A;});
    auto remb = remove_if(v.begin(),v.end(),[&](int value){return value==B;});
    v.erase(rema,v.end());
    v.erase(remb,v.end());
    cout<<v[0]<<endl;
    return 0;
    }

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
int main() {
	int a[3] = {1, 2, 3}, A, B;
	vector<int> v(a_arr, end(a_arr));
	cin >> A;
	cin >> B;
	auto rema = remove_if(v.begin(), v.end(), [&](int value) {return value == A; });
	auto remb = remove_if(v.begin(), v.end(), [&](int value) {return value == B; });
	v.erase(rema, v.end());
	v.erase(remb, v.end());
	cout << v[0] << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'a_arr' was not declared in this scope
    6 |         vector<int> v(a_arr, end(a_arr));
      |                       ^~~~~
Language: C

#include<stdio.h>
int main(){
  int a,b;
  scanf("%d%d",&a,&b);
  printf("%d",6-a-b);
  
  retuen 0;
 }


Compiler output:
main.c: In function 'main':
main.c:7:3: error: 'retuen' undeclared (first use in this function)
    7 |   retuen 0;
      |   ^~~~~~
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: expected ';' before numeric constant
    7 |   retuen 0;
      |         ^~
      |         ;
Language: C

#include<stdio.h>
int main(){
  int a,b;
  scanf(%d%d,&a,&b);
  printf("%d",6-a-b);
  
  retuen 0;
 }

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected expression before '%' token
    4 |   scanf(%d%d,&a,&b);
      |         ^
main.c:7:3: error: 'retuen' undeclared (first use in this function)
    7 |   retuen 0;
      |   ^~~~~~
main.c:7:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: expected ';' before numeric constant
    7 |   retuen 0;
      |         ^~
      |         ;
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main() {
	int a_arr[3] = {1, 2, 3}, A, B, s;
	vector<int> v(a_arr, end(a_arr));
	cin >> A;
	cin >> B;
	auto rema = remove_if(v.begin(), v.end(), [&](int value) {return value == A});
	auto remb = remove_if(v.begin(), v.end(), [&](int value) {return value == B});
	v.erase(rema, data.end());
	v.erase(remb, data.end());
	cout << v[0] << endl;
	return 0;
}

Compiler output:
a.cc: In lambda function:
a.cc:9:84: error: expected ';' before '}' token
    9 |         auto rema = remove_if(v.begin(), v.end(), [&](int value) {return value == A});
      |                                                                                    ^
      |                                                                                    ;
a.cc: In lambda function:
a.cc:10:84: error: expected ';' before '}' token
   10 |         auto remb = remove_if(v.begin(), v.end(), [&](int value) {return value == B});
      |                                                                                    ^
      |                                                                                    ;
a.cc: In function 'int main()':
a.cc:11:28: error: overloaded function with no contextual type information
   11 |         v.erase(rema, data.end());
      |                            ^~~
a.cc:12:28: error: overloaded function with no contextual type information
   12 |         v.erase(remb, data.end());
      |                            ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main() {
	int a_arr[3] = {1, 2, 3}, A, B;
	vector<int> v(a_arr, end(a_arr));
	cin >> A;
	cin >> B;
	s = v.erase(A);
	s = v.erase(B);
	cout << v[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 's' was not declared in this scope
    9 |         s = v.erase(A);
      |         ^
a.cc:9:20: error: no matching function for call to 'std::vector<int>::erase(int&)'
    9 |         s = v.erase(A);
      |             ~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
a.cc:10:20: error: no matching function for call to 'std::vector<int>::erase(int&)'
   10 |         s = v.erase(B);
      |             ~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main() {
	int a_arr[3] = {1, 2, 3}, A, B;
	vector<int> v(a_arr, end(a_arr));
	cin >> A;
	cin >> B;
	v.erase(A);
	v.erase(B);
	cout << v[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: no matching function for call to 'std::vector<int>::erase(int&)'
    9 |         v.erase(A);
      |         ~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
a.cc:10:16: error: no matching function for call to 'std::vector<int>::erase(int&)'
   10 |         v.erase(B);
      |         ~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from 'int' to 'std::vector<int>::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator; const_iterator = std::vector<int>::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main() {
	int a_arr[3] = {1, 2, 3}, A, B;
	vector<int> v(a_arr, end(a_arr));
	cin >> A;
	cin >> B;
	a_arr.erase(A);
	a_arr.erase(B);
	cout << a_arr[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: request for member 'erase' in 'a_arr', which is of non-class type 'int [3]'
    9 |         a_arr.erase(A);
      |               ^~~~~
a.cc:10:15: error: request for member 'erase' in 'a_arr', which is of non-class type 'int [3]'
   10 |         a_arr.erase(B);
      |               ^~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main() {
	int a_arr[3] = {1, 2, 3}, A, B;
	vector<int> v(a, end(a));
	cin >> A;
	cin >> B;
	a.erase(A);
	a.erase(B);
	cout << a[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'a' was not declared in this scope
    6 |         vector<int> v(a, end(a));
      |                       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
int main() {
	int a = {1, 2, 3}, A, B;
	vector<int> v(a, end(a));
	cin >> A;
	cin >> B;
	a.erase(A);
	a.erase(B);
	cout << a[0] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: scalar object 'a' requires one element in initializer
    5 |         int a = {1, 2, 3}, A, B;
      |             ^
Language: C++

#include <iostream>
#include <string>
#include <math.h>

using namespace std;
int main(){
    int a=[1,2,3],A, B;
    vector<int> v(a,end(a));
    cin>>A;
    cin>>B;
    a.erase(A);
    a.erase(B);
    cout<<a[0]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected identifier before numeric constant
    7 |     int a=[1,2,3],A, B;
      |            ^
a.cc:7:13: error: expected ']' before ',' token
    7 |     int a=[1,2,3],A, B;
      |             ^
      |             ]
a.cc: In lambda function:
a.cc:7:13: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:11: error: invalid user-defined conversion from 'main()::<lambda()>' to 'int' [-fpermissive]
    7 |     int a=[1,2,3],A, B;
      |           ^~
a.cc:7:11: note: candidate is: 'constexpr main()::<lambda()>::operator void (*)()() const' (near match)
    7 |     int a=[1,2,3],A, B;
      |           ^
a.cc:7:11: note:   no known conversion from 'void (*)()' to 'int'
a.cc:7:14: error: expected unqualified-id before numeric constant
    7 |     int a=[1,2,3],A, B;
      |              ^
a.cc:8:5: error: 'vector' was not declared in this scope
    8 |     vector<int> v(a,end(a));
      |     ^~~~~~
a.cc:4:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    3 | #include <math.h>
  +++ |+#include <vector>
    4 | 
a.cc:8:12: error: expected primary-expression before 'int'
    8 |     vector<int> v(a,end(a));
      |            ^~~
a.cc:9:10: error: 'A' was not declared in this scope
    9 |     cin>>A;
      |          ^
a.cc:10:10: error: 'B' was not declared in this scope
   10 |     cin>>B;
      |          ^
a.cc:11:7: error: request for member 'erase' in 'a', which is of non-class type 'int'
   11 |     a.erase(A);
      |       ^~~~~
a.cc:12:7: error: request for member 'erase' in 'a', which is of non-class type 'int'
   12 |     a.erase(B);
      |       ^~~~~
a.cc:13:12: error: invalid types 'int[int]' for array subscript
   13 |     cout<<a[0]<<endl;
      |            ^
Language: C

#include<stdio.h>
int main(void){
    int a,b;
    scanf("%d",&a);
    scanf("%d".&b);
    if(a+b==3){
        printf("3\n");
    }
    else if(a+b==4){
        printf("2\n");
    }
    else{
        printf("1\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected identifier before '&' token
    5 |     scanf("%d".&b);
      |                ^
Language: C

int main() {
  int w1, 12;
  scanf("%d %d", &w1, &w2);
  for(int i = 1; i <= 3; i++) {
    if (i != w1 && i != w2) {
      printf("%d\n", i);
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:2:11: error: expected identifier or '(' before numeric constant
    2 |   int w1, 12;
      |           ^~
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d", &w1, &w2);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main() {
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d", &w1, &w2);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:24: error: 'w2' undeclared (first use in this function); did you mean 'w1'?
    3 |   scanf("%d %d", &w1, &w2);
      |                        ^~
      |                        w1
main.c:3:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |       printf("%d\n", i);
      |       ^~~~~~
main.c:6:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<stdio.h>

int main(void){
  int a,b;
  scanf("%d",&a);
  scanf("%d",&b);
  for(i=1;i<4;i++){
    if(i!=a && i != b){
      break;
    }
  }
  printf("%d\n",i);
 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i=1;i<4;i++){
      |       ^
a.cc:12:17: error: 'i' was not declared in this scope
   12 |   printf("%d\n",i);
      |                 ^
Language: Java

import java.util.*;

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

System.out.println((6-A-B);
  }
}

Compiler output:
Main.java:9: error: ')' or ',' expected
System.out.println((6-A-B);
                          ^
1 error
Language: C++

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

int main(){
  int n;
  cin >> n;
  string s,t;
  cin >> s >> t;
  string ans;
  rep(i,n){
    ans += s[i];
    ans += t[i];
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc:2:30: error: 'i' does not name a type
    2 | define rep(i,n) for (int i=0;i<(n); ++i)
      |                              ^
a.cc:2:37: error: expected unqualified-id before '++' token
    2 | define rep(i,n) for (int i=0;i<(n); ++i)
      |                                     ^~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> n;
      |   ^~~
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string s,t;
      |   ^~~~~~
a.cc:10:10: error: 's' was not declared in this scope
   10 |   cin >> s >> t;
      |          ^
a.cc:10:15: error: 't' was not declared in this scope
   10 |   cin >> s >> t;
      |               ^
a.cc:11:9: error: expected ';' before 'ans'
   11 |   string ans;
      |         ^~~~
      |         ;
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   rep(i,n){
      |       ^
a.cc:12:3: error: 'rep' was not declared in this scope
   12 |   rep(i,n){
      |   ^~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << ans << endl;
      |   ^~~~
a.cc:16:11: error: 'ans' was not declared in this scope
   16 |   cout << ans << endl;
      |           ^~~
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |   cout << ans << endl;
      |                  ^~~~
Language: C++

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

int main(){
  int n;
  cin >> n;
  string s,t;
  cin >> s >> t;
  string answer;
  rep(i,n){
    answer += s[i];
    answer += t[i];
  }
  cout << answer << endl;
  return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |   return;
      |   ^~~~~~
Language: C++

#include <bits/stdc++>

using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  cout << a ^ b << endl;
}

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

#include<stdio.h>
int main (void) {

  int A,B;
  int a = 1, b = 2, c = 3;
  
  printf();	scanf("%d", &A);
  printf();	scanf("%d", &B);
  
  if(!(a == b)) {
  	printf("%d", c);
  }
  else if(!(b == c)) {
  	printf("%d", a);
  }
  else {
  	printf("%d", b);
  }


return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:3: error: too few arguments to function 'printf'
    7 |   printf();     scanf("%d", &A);
      |   ^~~~~~
In file included from main.c:1:
/usr/include/stdio.h:363:12: note: declared here
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
main.c:8:3: error: too few arguments to function 'printf'
    8 |   printf();     scanf("%d", &B);
      |   ^~~~~~
/usr/include/stdio.h:363:12: note: declared here
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  char ch1,ch2;
  cin>>ch1>>ch2;
  if(ch1=='A && ch2=='B')
     cout<<"C"<<endl;
  else if(ch1=='A' && ch2=='C')
     cout<<"B"<<endl;
  else 
     cout<<"A"<<endl;
}

Compiler output:
a.cc:7:11: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    7 |   if(ch1=='A && ch2=='B')
      |           ^~~~~~~~~~~~~
a.cc:7:24: warning: missing terminating ' character
    7 |   if(ch1=='A && ch2=='B')
      |                        ^
a.cc:7:24: error: missing terminating ' character
    7 |   if(ch1=='A && ch2=='B')
      |                        ^~
a.cc: In function 'int main()':
a.cc:7:11: error: unable to find character literal operator 'operator""B' with 'int' argument
    7 |   if(ch1=='A && ch2=='B')
      |           ^~~~~~~~~~~~~
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else if(ch1=='A' && ch2=='C')
      |   ^~~~
a.cc:8:22: error: expected ')' before 'else'
    8 |      cout<<"C"<<endl;
      |                      ^
      |                      )
    9 |   else if(ch1=='A' && ch2=='C')
      |   ~~~~                
a.cc:7:5: note: to match this '('
    7 |   if(ch1=='A && ch2=='B')
      |     ^
Language: Java

import java.util.* ;
public class Main{
	public static void main(String []args){
    	Scanner sc = new Scanner(System.in);
      
        // System.out.println(sc.nextLine().replace(" " , "")) ; 
        String s1= sc.next();
       String s2 = sc.next() ; 
      String res = "" ; 
      for(int = 0 ; i <s1.length() ;i++){
      	if(i%2 ==0  )
          res+=s1.charAt(i) ;
        else 
          res+= s2.charAt(i) ;
      }
      System.out.println(res ) ;
        
      
        
      
      
      
    }
 
 
}
































Compiler output:
Main.java:10: error: not a statement
      for(int = 0 ; i <s1.length() ;i++){
          ^
Main.java:10: error: ';' expected
      for(int = 0 ; i <s1.length() ;i++){
             ^
Main.java:10: error: illegal start of expression
      for(int = 0 ; i <s1.length() ;i++){
              ^
Main.java:10: error: not a statement
      for(int = 0 ; i <s1.length() ;i++){
                      ^
Main.java:10: error: ')' expected
      for(int = 0 ; i <s1.length() ;i++){
                                  ^
Main.java:10: error: ';' expected
      for(int = 0 ; i <s1.length() ;i++){
                                       ^
6 errors
Language: Java

import java.util.* ;
public class Main{
	public static void main(String []args){
    	Scanner sc = new Scanner(System.in);
        System.out.println(sc.nextLine().replace(" " , "") ; 
    }
 
 
}

Compiler output:
Main.java:5: error: ')' or ',' expected
        System.out.println(sc.nextLine().replace(" " , "") ; 
                                                          ^
1 error
Language: Java

import java.util* ;
public class Main{
	public static void main(String []args){
    	Scanner sc = new Scanner(System.in);
        int a = sc.nextInt(); 
      int b = sc.nextInt();
       System.out.println(6 - a - b  ) ;
    }


}

Compiler output:
Main.java:1: error: ';' expected
import java.util* ;
                ^
1 error
Language: Java

import java.util.*;
public class A
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		int num2 = sc.nextInt();
		System.out.println(6 - num - num2);
		
	}
}

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

#include<stdio.h>

int main() {
	int a, b;
	scanf_s("%d %d", &a, &b);
	printf("%d", 6 - a - b);
	
	return 0;
}

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

#include "bits/stdc++.h"
#define ll long long
#define vi vector <int>
#define vii vector <vi>
using namespace std;

const int mod = 1e9 + 7;
const int mnx = 1e6 + 9;

ll a, b;

int main(){
    cin >> a >> b;
    
    for(int i = 1; i <= 3; i++){
        if(i ! = b && i != a){
            cout << i << '\n';
            return 0;
        }
    }
    
    return 0;
}















































Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: expected ')' before '!' token
   16 |         if(i ! = b && i != a){
      |           ~ ^~
      |             )
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int A = sc.nextInt();
    int B = sc.nextInt();
    if(A==1&&B==2){
      System.out.println("3")
    }else if(A==2&&B==1){
      System.out.println("3")
    }
    else if(A==1&&B==3){
      System.out.println("2")
    } else if(A==3&&B==1){
      System.out.println("2")
    }else if(A==3&&B==2){
      System.out.println("1")
    }else if(A==2&&B==3){
      System.out.println("1")
    }


   
    }
  }
}

Compiler output:
Main.java:9: error: ';' expected
      System.out.println("3")
                             ^
Main.java:11: error: ';' expected
      System.out.println("3")
                             ^
Main.java:14: error: ';' expected
      System.out.println("2")
                             ^
Main.java:16: error: ';' expected
      System.out.println("2")
                             ^
Main.java:18: error: ';' expected
      System.out.println("1")
                             ^
Main.java:20: error: ';' expected
      System.out.println("1")
                             ^
Main.java:27: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

package ABC148;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class RoundOne {

  public static void main(String[] args) {
    // TODO 自動生成されたメソッド・スタブ
    Scanner scanner = new Scanner(System.in);
    Set<Integer> set = new HashSet<Integer>(Arrays.asList(1, 2, 3));
    int number1 = scanner.nextInt();
    int number2 = scanner.nextInt();
    set.remove(number1);
    set.remove(number2);
    for (Integer integer : set) {
      System.out.println(integer);
    }
  }

}


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

#include <iostream>
using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    switch (a + b) {
        case 3:
            cout << 3;
            break;
        case 4:
            cout << 2;
            break;
        case 5:
            cout << 1;
            break;
    }
    cout << endl;
}

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

#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
#define rep(i,n) for(int i=0;i<(n);i++)
#define ll long long
int main() {
	int a, b;
	cin >> a >> b;
	cout << 6 - a - b << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   10 |         cin >> a >> b;
      |         ^~~
      |         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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout << 6 - a - b << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout << 6 - a - b << endl;
      |                              ^~~~
      |                              std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.util.*;
import java.Scanner;
public class Main {
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int line = sc.nextInt();
    int line2 = sc.nextInt();
      
    if(line == 1 && line2 == 2){
      System.out.print(3);
    }else if(line == 1 && line2 == 3){
      System.out.print(2);
    }else if(line == 2 && line2 == 1){
      System.out.print(3);
    }else if(line == 2 && line2 == 3){
      System.out.print(1);
    }else if(line == 3 && line2 == 1){
      System.out.print(2);
    }else if(line == 3 && line2 == 2){
      System.out.print(1);
    }
    }
}

Compiler output:
Main.java:2: error: cannot find symbol
import java.Scanner;
           ^
  symbol:   class Scanner
  location: package java
1 error
Language: Java

import java.util.*;
import java.Scanner;
public class Main {
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
    int line = sc.nextInt();
    int line2 = sc.nextInt();
      
    if(line == 1 && line2 == 2){
      System.out.print(3);
    }else if(line == 1 && line2 == 3){
      System.out.print(2);
    }else if(line == 2 && line2 == 1){
      System.out.print(3);
    }else if(line == 2 && line2 == 3){
      System.out.print(1);
    }else if(line == 3 && line2 == 1){
      System.out.print(2);
    }else if(line == 3 && line2 == 2){
      System.out.print(1);
    }
}

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

#incldue <iostream>


int main(){
  	int A, B;
  	std::cin>>A>>B;
  	int C = 1 + 2 + 3 - A - B;
  	std::cout<<C;
  
 	return 0; 
}

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:14: error: 'cin' is not a member of 'std'
    6 |         std::cin>>A>>B;
      |              ^~~
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:8:14: error: 'cout' is not a member of 'std'
    8 |         std::cout<<C;
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim_right().parse().ok().unwrap()
}
fn main() {
    let A: u32 = read();
    let B: u32 = read();
    println!("{}", 6 - A - B);
}


Compiler output:
a.cc:1:1: error: 'fn' does not name a type
    1 | fn read<T: std::str::FromStr>() -> T {
      | ^~
a.cc:6:1: error: 'fn' does not name a type
    6 | fn main() {
      | ^~
Language: C++

#inlcude<stdc++.h>
using namespce std;
int main()
{
  int m,n;
  cin>>m>>n;
  if(m!=1&&n!=1)
    cout<<"1";
  if(m!=2&&n!=2)
    cout<<"2";
  if(m!=3&&n!=3)
    cout<<"3";
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>m>>n;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"1";
      |     ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"2";
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"3";
      |     ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int a, b;
	cin >> a >> b;
	if(a!=1&&b!=1)	cout << 1 << endl;
	if(a!=2&&b!=2)	cout << 2 << endl;
	if(a!=3&&b!=3)	cout << 3 << 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() {
  int a, b;
  cin>>a>>b;
  cout << a ^ b <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   cout << a ^ b <<endl;
      |               ~~^~~~~~
Language: C++

#include<stdio.h>
int main
{
	int a,b;
    scanf("%d%d", &a, &b);
    printf("%d",6-a-b);
	return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:9: error: expected primary-expression before 'int'
    4 |         int a,b;
      |         ^~~
a.cc:4:9: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:10: error: expected constructor, destructor, or type conversion before '(' token
    5 |     scanf("%d%d", &a, &b);
      |          ^
a.cc:6:11: error: expected constructor, destructor, or type conversion before '(' token
    6 |     printf("%d",6-a-b);
      |           ^
a.cc:7:9: error: expected unqualified-id before 'return'
    7 |         return 0;
      |         ^~~~~~
a.cc:8:1: error: expected declaration before '}' token
    8 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a[2000005];
int main()
{
	int n;
	cin>>n;
	for(int i=1;i<=n;i++) cin>>a[i];
	int now=1,ans=0;
	for(int i=1;i<=n;i++)
	{
		if(a[i]==now)ans++;
		else res++;
	}
	if(now==1) cout<<-1<<endl;
	else cout<<ans<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: 'res' was not declared in this scope
   13 |                 else res++;
      |                      ^~~
Language: Java

import java.util.Scanner;
class Test {
  public static void main(String[] args) {
     Scanner sc = new Scanner(System.in);
    int A=sc.nextInt();
    int B=sc.nextInt();
    int C=sc.nextInt();
    
    System.out.println(C);

Compiler output:
Main.java:9: error: reached end of file while parsing
    System.out.println(C);
                          ^
1 error
Language: C++

#include<stdio.h>
#include<string>
#include<stdlib.h>
#include<iostream>
using namespace std;

int main(){
  string S,T;
  int N;
  cin >> N;
  cin >> S >> T;
  string A[2*N];
  for (int i = 0 ; i<N;i++){
    A[2*i]=S[i];

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected '}' at end of input
   14 |     A[2*i]=S[i];
      |                 ^
a.cc:13:28: note: to match this '{'
   13 |   for (int i = 0 ; i<N;i++){
      |                            ^
a.cc:14:17: error: expected '}' at end of input
   14 |     A[2*i]=S[i];
      |                 ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

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

int main(){
  string S,T;
  int N;
  cin >> N;
  cin >> S;
  cin >> T;
  string A[2*N]
  for (int i = 0 ; i<N;i++){
    A[2*i]=S[i];
    A[2*i+1]=T[i];
  }
  cout << A <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected initializer before 'for'
   11 |   for (int i = 0 ; i<N;i++){
      |   ^~~
a.cc:11:20: error: 'i' was not declared in this scope
   11 |   for (int i = 0 ; i<N;i++){
      |                    ^
a.cc:15:11: error: 'A' was not declared in this scope
   15 |   cout << A <<endl;
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int a, b;
  cin >> a >> b;
  if(a==1&&b==2)
  {
    printf("3");
  }
  else if(a==2&&b==3)
  {
    printf("1");
  }
  else if(a==1&&b==3)
  {
    printf("2"):
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: expected ';' before ':' token
   17 |     printf("2"):
      |                ^
      |                ;