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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
   
  int N;
  
  cin >> N;
  
  string S;
  
  string T;
  
  cin >> S >> T;
  
  for (int i=0; i<N; i++){
   printf(S[i])
  }
  
  for (int i=0; i<N; i++){
    printf(T[i])
  }
   }
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   17 |    printf(S[i])
      |    ~~~~~~^~~~~~
      |          |
      |          __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:17:16: error: expected ';' before '}' token
   17 |    printf(S[i])
      |                ^
      |                ;
   18 |   }
      |   ~             
a.cc:21:11: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   21 |     printf(T[i])
      |     ~~~~~~^~~~~~
      |           |
      |           __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:21:17: error: expected ';' before '}' token
   21 |     printf(T[i])
      |                 ^
      |                 ;
   22 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B;
  
 cin >> A >> B;
  
 if(A != B){
  cout << 6-A-B << endl;
 }
  
  }
string 0;
}

Compiler output:
a.cc:15:8: error: expected unqualified-id before numeric constant
   15 | string 0;
      |        ^
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B;
  
 cin >> A >> B;
  
 
  cout << 6-A-B << endl;
  
  }
string 0;

Compiler output:
a.cc:14:8: error: expected unqualified-id before numeric constant
   14 | string 0;
      |        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B;
  
 cin >> A >> B;
  
 
  cout << 6-A-B << endl;
  
  string 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected unqualified-id before numeric constant
   13 |   string 0;
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B,C;
  
 A,B,C=1,2,3;
  

  cout << 6-A-B << endl;
  }
   }

Compiler output:
a.cc:13:4: error: expected declaration before '}' token
   13 |    }
      |    ^
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;
  } else if((A != 2) && (B != )) {
    cout << 2 << endl;
  } else {
    cout << 3 << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected primary-expression before ')' token
   10 |   } else if((A != 2) && (B != )) {
      |                               ^
Language: C++

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


int main()
{
    int A, B;
    cin >> A >> B;

    int ans = 6 - A - B;

    cout << ans << endl;

    return 0;
}#include <bits/stdc++.h>
using namespace std;
typedef long long ll;


int main()
{
    int A, B;
    cin >> A >> B;

    int ans = 6 - A - B;

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc:16:2: error: stray '#' in program
   16 | }#include <bits/stdc++.h>
      |  ^
a.cc:16:3: error: 'include' does not name a type
   16 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:21:5: error: redefinition of 'int main()'
   21 | int main()
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main()
      |     ^~~~
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:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   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:7:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   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<bits/stdc++.h>
using namespace std;
 
int main()
{
    int a,b;
    cin>>a>>b;
    if (a != 1 && b != 1)
    {
        cout<<1;
    }
    if (a != 2 && b != 2)
    {
        cout<<2;
    }

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

#include<bits/stdc++.h> 
using namespace std; 
  
int main() 
{ 
int a,b;
  int arr[4];
 cin>>a>>b;
arr[a]++;
arr[b]++;
for(int i=1;i<4;i++){
if(a[i]==0)cout<<a[i];
}  
  return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: invalid types 'int[int]' for array subscript
   12 | if(a[i]==0)cout<<a[i];
      |     ^
a.cc:12:19: error: invalid types 'int[int]' for array subscript
   12 | if(a[i]==0)cout<<a[i];
      |                   ^
Language: C++

/** omgursocute **/
#include <bits/stdc++.h>

int main() {
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	
	int a, b;
	cin >> a >> b;
	cout << (a^b);

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'ios' has not been declared
    5 |         ios::sync_with_stdio(false);
      |         ^~~
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin.tie(NULL);
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << (a^b);
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

/** omgursocute **/
#include <iostream>

int main() {
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	
	int a, b;
	cin >> a >> b;
	cout << (a^b);

}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'ios' has not been declared
    5 |         ios::sync_with_stdio(false);
      |         ^~~
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin.tie(NULL);
      |         ^~~
      |         std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout << (a^b);
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(vec) vec.begin(),vec.end()
typedef long long ll;
const int MAX=2e5;
const ll MOD=1e9+7;
const int INF=1<<30;
ll kiriage(ll a,ll b){return a%b==0?a/b:a/b+1;}

int main(){
  vector<int> v={1,2,3};
  v.erase(1);
  for(auto c:v){
    cout <<c << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: no matching function for call to 'std::vector<int>::erase(int)'
   15 |   v.erase(1);
      |   ~~~~~~~^~~
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
Language: C++

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

#define _CRT_SECURE_NO_DEPRECATE 
#define endl "\n"
#define IOS ios::sync_with_stdio(false); cin.tie(nullptr);
#define sz(x) ((int)x.size())

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

#define REP(i, a, b) for(int i = a; i < b; i++)
#define IT(it, x) for(auto it : x)

template<class T> bool uin(T &a, T b) { return a > b ? (a = b, true) : false; }
template<class T> bool uax(T &a, T b) { return a < b ? (a = b, true) : false; }
 
int main()
{
   cin >> n;
   int cur = 1;
   for(int i = 1; i <= n; i++)
   {
      cin >> a[i];
      if(a[i] != cur)
         ans++;
      else
         cur++;
   }
   if(ans == n)
      ans = -1;
   cout << ans;
   return 0;     
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: 'n' was not declared in this scope; did you mean 'yn'?
   23 |    cin >> n;
      |           ^
      |           yn
a.cc:27:14: error: 'a' was not declared in this scope
   27 |       cin >> a[i];
      |              ^
a.cc:29:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |          ans++;
      |          ^~~
      |          abs
a.cc:33:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   33 |    if(ans == n)
      |       ^~~
      |       abs
a.cc:35:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   35 |    cout << ans;
      |            ^~~
      |            abs
Language: C++

    /*
    Life Before Death, Strength Before Weakness, Journey Before Destination
    ------------------------------------------------------------------------
    You don't become great by trying to be great.
    You become great by wanting to do something,
    and then doing it so hard that you become great in the process.
    */

    //#pragma comment(linker, ack:200000000")
    #pragma GCC optimize ("Ofast")
    #pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
    #include <bits/stdc++.h>
    using namespace std;
    #define rep(i, n)    for(ll i = 0; i < (n); ++i)
    #define repA(i, a, n)  for(ll i = a; i <= (n); ++i)
    #define repD(i, a, n)  for(ll i = a; i >= (n); --i)
    #define trav(a, x) for(auto& a : x)
    #define all(x) x.begin(), x.end()
    #define sz(x) (int)(x).size()
    #define fill(a)  memset(a, 0, sizeof (a))
    #define fst first
    #define snd second
    //#define mp make_pair
    #define pb push_back
    #define PI           3.141592653589793238462643383279502884197169399  /* pi */
    // #define te
    typedef long double ld;
    typedef long long ll;
    typedef pair<ll, ll> pii;
    typedef vector<ll> vi;
    const int maxN = 200100;
    typedef pair<pii, ll> piii;

    void solve() {
        ll a, b;
        cin >> a >> b;
        map<ll, ll> mp;
        mp[a]++, mp[b]++;
        for(int i=1; i<=3; i++){
            if(!mp[i]) { cout << i << endl; breal;}
        }
    }

    int main() {
      cin.sync_with_stdio(0); cin.tie(0);
      cin.exceptions(cin.failbit);
      // ll ti;   cin >> ti;  while(ti--)
      solve();
      return 0;
    }


Compiler output:
a.cc: In function 'void solve()':
a.cc:40:45: error: 'breal' was not declared in this scope
   40 |             if(!mp[i]) { cout << i << endl; breal;}
      |                                             ^~~~~
Language: C++

    #include<iostream>
    using namespace std;
    int main(){
      int a, b, c;
      cin >> a >> b;
      if(a==1 && b==2)
        cout << 3 << endl;
      else if(a==2 && b==3)
        cout << 2 << endl;
      else if(a==3 && c==1){
        cout << 1 << endl;
      
      return 0;
    }

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

#inclue<iostream>
using namespace std;
int main(){
  int a, b, c;
  cin >> a >> b;
  if(a==1 && b==2)
    cout << 3 << endl;
  else if(a==2 && b==3)
    cout << 2 << endl;
  else if(a==3 && c==1){
    cout << 1 << endl;
  
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclue; did you mean #include?
    1 | #inclue<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #inclue<iostream>
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << 3 << endl;
      |     ^~~~
a.cc:7:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:18: error: 'endl' was not declared in this scope
    7 |     cout << 3 << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclue<iostream>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << 2 << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |     cout << 2 << endl;
      |                  ^~~~
a.cc:9:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << 1 << endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:18: error: 'endl' was not declared in this scope
   11 |     cout << 1 << endl;
      |                  ^~~~
a.cc:11:18: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <string>
#include <sstream>
#include <iomanip> 
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <queue>
#include <stack>
#include <vector>
#include <map>
#include <set>
#include <functional>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <bitset>

using namespace std;


int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);

	cin >> a >> b;
	cout << 6 - a - b << "\n";

	return 0;
}



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

#include <iostream>
using namespace std;

int main(){
  
  
  int a,b;
  cin >> a >> b;
  set<int> se;
  se.insert(1);
  se.insert(2);
  se.insert(3);
  se.erase(se.find(a));
  se.erase(se.find(b));	
  
  cout << *(se.begin()) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'set' was not declared in this scope
    9 |   set<int> se;
      |   ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include <iostream>
  +++ |+#include <set>
    2 | using namespace std;
a.cc:9:7: error: expected primary-expression before 'int'
    9 |   set<int> se;
      |       ^~~
a.cc:10:3: error: 'se' was not declared in this scope
   10 |   se.insert(1);
      |   ^~
a.cc:16:33: error: expected '}' at end of input
   16 |   cout << *(se.begin()) << endl;
      |                                 ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int n,m,ans=0;
void Main(){
    cin>>n>>m;
    cout<<n^m<<endl;
}
int main(){
    Main();
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds; 
typedef long long int ll;
#define ull unsigned long long int
#define all(a) a.begin(),a.end()s
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>
#define hell 1000000007
#define vi vector<int>
#define vll vector<long long>
#define vvi vector<vi>
#define mp make_pair
#define pb push_back
#define MAX 10000001
int main()
{
    ll a,b;
    cin>>a>>b;
    if(a!=1&&b!=1)
        cout<<"1";
    else if(a!=2&&b!=2)
        cout<<"2"
    else
        cout<<"3";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:18: error: expected ';' before 'else'
   24 |         cout<<"2"
      |                  ^
      |                  ;
   25 |     else
      |     ~~~~
Language: C++

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

  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before '}' token
   10 |     else cout<<2
      |                 ^
      |                 ;
   11 |   }
      |   ~
Language: C++

#include <iostream>
using namespace std;

int main(void){
    int a;
    int b;
    cin >> a;
    cin >> b;
    int c = 6-a-b
    cout << c << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'cout'
   10 |     cout << c << endl;
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(void){
    cin >> a;
    cin >> b;

    cout << (6-a-b) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: 'a' was not declared in this scope
    5 |     cin >> a;
      |            ^
a.cc:6:12: error: 'b' was not declared in this scope
    6 |     cin >> b;
      |            ^
Language: Java

import java.util.*;
public class quiz {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int a = scan.nextInt(); 
    int b = scan.nextInt();
    int result = 0;
    int[] Arr = new int[]{ 1,2,3 }; 
    for(int i = 0; i < Arr.lenght(); i++)
      if(Arr[i]!=a && Arr[i]!=b)
        result = Arr[i];
    System.out.println(result);
  }
}

Compiler output:
Main.java:2: error: class quiz is public, should be declared in a file named quiz.java
public class quiz {
       ^
Main.java:9: error: cannot find symbol
    for(int i = 0; i < Arr.lenght(); i++)
                          ^
  symbol:   method lenght()
  location: variable Arr of type int[]
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid operands to binary & (have 'char *' and 'int')
    5 |   scanf("%d %d"&a,&b);
      |         ~~~~~~~^
      |         |
      |         char *
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    int n = scan.nextInt();
    int l = scan.nextInt();

    if (2 <= n && n <= 200 && -100 <= L && L <= 100) {
      int[] apples = new int[n];
      for (int i = 0; i < n; i++) {
        apples[i] = l + i - 1;
      }
    }
  }

  public static int nzeros(int n) {
      int last = n % 10;
      int rest = n / 10;
      if (last != 0) {
        return 0;
      } else if(n == 0) {
        return 1;
      } else {
        return 1 + nzeros(rest);
      }
  }

  public static int double_factorial(int n) {
    if (n < 2) {
      return 1;
    } else {
      return n * double_factorial(n - 2);
    }
  }
}



/**
def nzeros(n):
    last = n % 10
    rest = n // 10
    if last != 0 or rest == 0:
        return 0
    else:
        return 1 + nzeros(rest)

def double_factorial(num):
    if num < 2:
        return 1
    else:
        return num * double_factorial(num - 2)

input = input()
n = int(input)
print(nzeros(double_factorial(n)))*/


Compiler output:
Main.java:9: error: cannot find symbol
    if (2 <= n && n <= 200 && -100 <= L && L <= 100) {
                                      ^
  symbol:   variable L
  location: class Main
Main.java:9: error: cannot find symbol
    if (2 <= n && n <= 200 && -100 <= L && L <= 100) {
                                           ^
  symbol:   variable L
  location: class Main
2 errors
Language: C++

#include<iostream>

int main(){
	int num[3]={1,1,1};
  	int a,b;
  cin>>a>>b;
  num[a]=0;
  num[b]=0;
  for(int i = 0;i<3;++i){
  	if(num[i])
      cout<<num[i]<<endl;
  }
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>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:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout<<num[i]<<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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |       cout<<num[i]<<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 <stdio.h>
int mmc(int num1,int num2)
{
int a,b,resto;
 a = num1;
 b = num2;
do
{
 resto = a%b;
 a = b;
 b = resto;
}
while(resto != 0);

return(num1*num2)/a;
}
int main(void)
{
int a;
int b;
scanf("%d %d",&a,&b);
int resu;
resu = mmc(a,b);
if(resu > 100000)
{
printf("%d",a*b);
}
else
{
printf("%d",resu);
}
return(0);
}
}

Compiler output:
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:17: error: 'else' without a previous 'if'
   29 |                 else {
      |                 ^~~~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

int main(){
  int a, b;
  cin >> a >> b;
  cout << 6-a-b;
  return():
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:17:9: error: expected unqualified-id before 'else'
   17 |         else if (x == 2) {
      |         ^~~~
a.cc:21:17: error: expected unqualified-id before 'else'
   21 |                 else {
      |                 ^~~~
a.cc:24:9: error: expected declaration before '}' token
   24 |         }
      |         ^
a.cc:25:9: error: expected unqualified-id before 'else'
   25 |         else {
      |         ^~~~
a.cc:29:17: error: expected unqualified-id before 'else'
   29 |                 else {
      |                 ^~~~
a.cc:32:9: error: expected declaration before '}' token
   32 |         }
      |         ^
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main(void){
 int A,B;
  cin >> A >> B;
  if(A==1){
    if(B==2){
      cout << "3" <<endl;
    }else{
      cout << "2" <<endl;
    }
  }else if(A==2){
      if(B==1){
      cout << "3" <<endl;
    }else{
      cout << "1" <<endl;
    }
  }else{
    if(B==2){
      cout << "1" <<endl;
    }else{
      cout << "2" <<endl;
    }
  }
}

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 <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B,C;
  
  cin >> A >> B >> C;
 
  if ( C!=A,B && A!=B ){
  cout << C << endl;
        
 }

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B,C;
  
  cin >> A >> B >> C;
 
  if (A,B,C=1,2,3 C!=A,B && A!=B ){
  cout << C << endl;
 }
        
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: expected ')' before 'C'
   10 |   if (A,B,C=1,2,3 C!=A,B && A!=B ){
      |      ~           ^~
      |                  )
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B,C;
  
  cin >> A >> B >> C;
 
  if (int A,B,C=1,2,3 C!=A,B && A!=B ){
  cout << C << endl;
 }
        
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected initializer before ',' token
   10 |   if (int A,B,C=1,2,3 C!=A,B && A!=B ){
      |            ^
a.cc:10:12: error: expected ')' before ',' token
   10 |   if (int A,B,C=1,2,3 C!=A,B && A!=B ){
      |      ~     ^
      |            )
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:17:9: error: expected unqualified-id before 'else'
   17 |         else if (x == 2) {
      |         ^~~~
a.cc:21:17: error: expected unqualified-id before 'else'
   21 |                 else {
      |                 ^~~~
a.cc:24:9: error: expected declaration before '}' token
   24 |         }
      |         ^
a.cc:25:9: error: expected unqualified-id before 'else'
   25 |         else {
      |         ^~~~
a.cc:29:17: error: expected unqualified-id before 'else'
   29 |                 else {
      |                 ^~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A,B,C;
  
  cin >> A >> B >> C;
 
  if (int 1,2,3 C!=A,B && A!=B ){
  cout << C << endl;
 }
        
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected unqualified-id before numeric constant
   10 |   if (int 1,2,3 C!=A,B && A!=B ){
      |           ^
Language: C

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

using namespace std;

int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    if((a==1 && b==2) || (a==2 && b==1)){printf("%d",3);}
    else if((a==1 && b==3) || (a==3 && b==1)){printf("%d",2);}
    else if((a==2 && b==3) || (a==3 && b==2)){printf("%d",1);}
    return 0;
}


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

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

int main(){
  int a,b; cin >> a >> b;
  int ans = {1,2,3};
  ans.erase(a.begin()+a);
  ans.erase(a.begin()+b);
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: scalar object 'ans' requires one element in initializer
    6 |   int ans = {1,2,3};
      |       ^~~
a.cc:7:15: error: request for member 'begin' in 'a', which is of non-class type 'int'
    7 |   ans.erase(a.begin()+a);
      |               ^~~~~
a.cc:8:15: error: request for member 'begin' in 'a', which is of non-class type 'int'
    8 |   ans.erase(a.begin()+b);
      |               ^~~~~
Language: C

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

using namespace std;

int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    if((a==1 && b==2) || (a==2 && b==1)){printf("%d",3);}
    else if((a==1 && b==3) || (a==3 && b==1)){printf("%d",2);}
    else printf("%d",1)
    return 0;
}


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

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

using namespace std;

int main()
{
    int a,b;
    scanf("%d%d",&a,&b);
    if((a==1 && b==2) || (a==2 && b==1)){printf("%d",3);}
    else if((a==1 && b==3) || (a==3 && b==1)){printf("%d",2);}
    else printf("%d",1)
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ';' before 'return'
   13 |     else printf("%d",1)
      |                        ^
      |                        ;
   14 |     return 0;
      |     ~~~~~~
Language: C++

#include <iostream> 
#include <boost/math/common_factor.hpp> 
using namespace std; 
  
int main() 
{ 
  cin>>a>>b;
    cout <<boost::math::lcm(min(a,b),max(a,b))<< endl; 
    return 0; 
} 


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

#include <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int* a = new int[n];
    int k = n+10;
    int f = 0;
    for (int i = 0; i < n; i++) {
        cin>>a[i];
        a[i]=  a[i] - ( i -1 1 );
    }
    for (int i = 0; i < n; i++) {
        if (a[i] <= 0) {
            if (k < a[i]) {
                k = a[i];
                f = 1;
            }
        }
    }
    if (f == 0)
        k = -1;
    std::cout << k<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ')' before numeric constant
   12 |         a[i]=  a[i] - ( i -1 1 );
      |                       ~     ^~
      |                             )
Language: C++

using namespace std; 
  
int main() 
{ 
  cin>>a>>b;
    cout <<boost::math::lcm(min(a,b),max(a,b))<< endl; 
    return 0; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | using namespace std;
a.cc:5:8: error: 'a' was not declared in this scope
    5 |   cin>>a>>b;
      |        ^
a.cc:5:11: error: 'b' was not declared in this scope
    5 |   cin>>a>>b;
      |           ^
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout <<boost::math::lcm(min(a,b),max(a,b))<< endl;
      |     ^~~~
a.cc:6:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:12: error: 'boost' has not been declared
    6 |     cout <<boost::math::lcm(min(a,b),max(a,b))<< endl;
      |            ^~~~~
a.cc:6:29: error: 'min' was not declared in this scope; did you mean 'main'?
    6 |     cout <<boost::math::lcm(min(a,b),max(a,b))<< endl;
      |                             ^~~
      |                             main
a.cc:6:38: error: 'max' was not declared in this scope
    6 |     cout <<boost::math::lcm(min(a,b),max(a,b))<< endl;
      |                                      ^~~
a.cc:6:50: error: 'endl' was not declared in this scope
    6 |     cout <<boost::math::lcm(min(a,b),max(a,b))<< endl;
      |                                                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A;
  
  A=1,2,3;
  
  cin >> A;
  
  int B;
  
  B=1,2,3;
  
  cin >> B;
  
   int C;
  
  x=1,2,3;
  
  cin >> C;
   
  if (C != A,B && A != B ){
  cout << C << endl;
 }
        
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: 'x' was not declared in this scope
   20 |   x=1,2,3;
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
 
  int A;
  
  A=1,2,3;
  
  cin >> A;
  
  int B;
  
  B=1,2,3;
  
  cin >> B;
  
   int x;
  
  x=1,2,3;
  
  cin >> C;
   
  if (C != A,B && A != B ){
  cout << C << endl;
 }
        
 }

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

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

int main() {
    int a,b;
    cin >> a >> b;
    vector <int> okaka{1,2,3};
    for(int i = 0;i < okaka.size();i++){
        for(okaka.at(i)==i+1){
            continue;
        }
        cout << okaka.at(i) << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected ';' before ')' token
   10 |         for(okaka.at(i)==i+1){
      |                             ^
      |                             ;
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
a.cc:13:37: error: expected ')' before '}' token
   13 |         cout << okaka.at(i) << endl;
      |                                     ^
      |                                     )
   14 |     }
      |     ~                                
a.cc:10:12: note: to match this '('
   10 |         for(okaka.at(i)==i+1){
      |            ^
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
Language: C++

#include <iostream>
using namespace std;
int main(){
int A,B,;
  cin>>A,B;
  if(A+B==3){cout<<'3'<<endl;}
  else if(A+B==4){cout<<'2'<<endl;}
  else if(A+B==5){cout<<'1'<<endl;}
return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected unqualified-id before ';' token
    4 | int A,B,;
      |         ^
a.cc:9:9: error: expected ';' before '}' token
    9 | return 0
      |         ^
      |         ;
   10 | }
      | ~
Language: C++

#include <iostream>
using namespace std;
int main(){
int A,B,;
  cin>>A,B;
  if(A+B==3){cout<<'3'<<endl;}
  else if(A+B==4){cout<<'2'<<endl;}
  else if(A+B==5){cout<<'1'<<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: expected unqualified-id before ';' token
    4 | int A,B,;
      |         ^
Language: C++

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

int main() {
    int a,b;
    cin >> a >> b;
    vector <int> okaka{1,2,3};
    for(int i = 0;i < okaka.size;i++;){
        for(okaka.at(i)==i+1){
            continue;
        }
        cout << okaka.at(i) << endl;
    }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
    9 |     for(int i = 0;i < okaka.size;i++;){
      |                       ~~~~~~^~~~
      |                                 ()
a.cc:9:37: error: expected ')' before ';' token
    9 |     for(int i = 0;i < okaka.size;i++;){
      |        ~                            ^
      |                                     )
a.cc:9:38: error: expected primary-expression before ')' token
    9 |     for(int i = 0;i < okaka.size;i++;){
      |                                      ^
Language: C

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

int main(void)
{
	int data1,data2;
	scanf_s("%d%d",&data1,&data2);
   if(1 || 2){
        printf("3");
   }
   else if(2 || 3){
        printf("1");
   }
   else if(1 || 3){
        printf("2");
   }
   else{
       printf("0");
 }
	return 0;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: expected primary-expression before 'if'
    7 |   if((a==1 and b==2)or (if(a==2 and b==1) cout<<3;)) cout<<3;
      |                         ^~
a.cc:7:25: error: expected ')' before 'if'
    7 |   if((a==1 and b==2)or (if(a==2 and b==1) cout<<3;)) cout<<3;
      |                        ~^~
      |                         )
a.cc:7:50: error: expected ')' before ';' token
    7 |   if((a==1 and b==2)or (if(a==2 and b==1) cout<<3;)) cout<<3;
      |     ~                                            ^
      |                                                  )
a.cc:7:51: error: expected primary-expression before ')' token
    7 |   if((a==1 and b==2)or (if(a==2 and b==1) cout<<3;)) cout<<3;
      |                                                   ^
a.cc:8:3: error: 'else' without a previous 'if'
    8 |   else if((a==2 and b==3)or (if(a==3 and b==2) cout<<1;
      |   ^~~~
a.cc:8:30: error: expected primary-expression before 'if'
    8 |   else if((a==2 and b==3)or (if(a==3 and b==2) cout<<1;
      |                              ^~
a.cc:8:30: error: expected ')' before 'if'
    8 |   else if((a==2 and b==3)or (if(a==3 and b==2) cout<<1;
      |                             ~^~
      |                              )
a.cc:8:55: error: expected ')' before ';' token
    8 |   else if((a==2 and b==3)or (if(a==3 and b==2) cout<<1;
      |          ~                                            ^
      |                                                       )
Language: Java

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

        int a=sc.nextInt();
        int b=sc.nextInt();

        if(a==1 && b==2){
            System.out.println(3);
        }
        if(a==1 && b==3){
            System.out.println(2);
        }
        if(a==2 && b==1){
            System.out.println(3);
        }
        if(a==2 && b==3){
            System.out.println(1);
        }
        if(a==3 && b==1){
            System.out.println(2);
        }
        if(a==3 && b==2){
            System.out.println(1);
        }
    }
}

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

n=int(input())
ans=0
if(n%2==1):
    print("0")
else:
    n=n/2
    i=1
    while(n>=5**i):
        ans=ans+(n/(5**i))
        i=i+1
    print(ans)

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
n=int(input())
^
1 error
Language: Java

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>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:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |    cout<<3;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |    cout<<2;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |    cout<<1;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     cout<<3;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |     cout<<2;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |     cout<<1;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

int main(void)
{
	int data1,data2;
	scanf_s("%d%d",&data1,&data2);
   if(1 || 2){
        printf("3");
   }
   else if(2 || 3){
        printf("1");
   }
   else if(1 || 3){
        printf("2");
   }
   else{
       printf("この問題は1,2,3の3択問題です。¥n");
 }
	return 0;
}

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

#incldue <bits/stdc++.h>
using namespace std;
 
int main(){
	int a,b;
  	cin>>a>>b;
  	vector<int> v(3,1);
  	v[a-1]=0;
  	v[b-1]=0;
  
  for(int i=0;i<3;i++){
  	if(v[i]==1)cout<<i+1<<endl;
  }
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         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 <bits/stdc++.h>
a.cc:7:9: error: 'vector' was not declared in this scope
    7 |         vector<int> v(3,1);
      |         ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #incldue <bits/stdc++.h>
a.cc:7:16: error: expected primary-expression before 'int'
    7 |         vector<int> v(3,1);
      |                ^~~
a.cc:8:9: error: 'v' was not declared in this scope
    8 |         v[a-1]=0;
      |         ^
a.cc:12:20: error: 'cout' was not declared in this scope
   12 |         if(v[i]==1)cout<<i+1<<endl;
      |                    ^~~~
a.cc:12:20: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:31: error: 'endl' was not declared in this scope
   12 |         if(v[i]==1)cout<<i+1<<endl;
      |                               ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #incldue <bits/stdc++.h>