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

#include <bits/stdc++.h>
 
using namespace std;
 
int main(){
 string s;
  
  cin >> s;
  int n = s.length();
  string a = s;
  reverse(a.begin(),a.end())
    if(a!=s){cout<<"No";return 0;}
  string b = s.substr(0,(n-1)/2);
  string  c= b;
  reverse(c.begin(),c.end());
  string d = s.substr((n+3)/2 - 1);
  string l = d;
  reverse(l.begin(),l.end());
  if(c==b && l==d) cout << "Yes";
  else cout <<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected ';' before 'if'
   11 |   reverse(a.begin(),a.end())
      |                             ^
      |                             ;
   12 |     if(a!=s){cout<<"No";return 0;}
      |     ~~
Language: C++

#include<stdio.h>

int main(){
  int n,m,i,result=1;
  scanf("%d %d", &n,&m);
  for(i=0;i++;i<N+M-2){
    result=result*2
  }
  printf("%d",result);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'N' was not declared in this scope
    6 |   for(i=0;i++;i<N+M-2){
      |                 ^
a.cc:6:19: error: 'M' was not declared in this scope
    6 |   for(i=0;i++;i<N+M-2){
      |                   ^
a.cc:7:20: error: expected ';' before '}' token
    7 |     result=result*2
      |                    ^
      |                    ;
    8 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
typedef pair<ll, ll> P;
const int MAXN = 1e5 + 7;
const int LOG = 20;
const int INF = 0x3f3f3f3f;

int jc(int n){
    if(n <= 0)
        return 1;
    int ret = 1;
    for(int i = 1;i <= n;i++)
        ret *= i;
    return ret;
}

void solve() {
    int n, m;
    cin >> n >> m;
    int ans = 0;
    if(n >= 2){
        ans = jc(n) / (jc(n - 2) * 2)
    }
    if(m >= 2){
       ans +=  jc(m) / (jc(m - 2) * 2);
    }
    cout << ans << endl;
}

signed main() {
    ios::sync_with_stdio(false);
    cin.tie(NULL),cout.tie(NULL);
    int T;
    T = 1;
    while(T--) {
        solve();
    }
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:24:38: error: expected ';' before '}' token
   24 |         ans = jc(n) / (jc(n - 2) * 2)
      |                                      ^
      |                                      ;
   25 |     }
      |     ~
Language: C++

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

int main()
{
	ll n,m;
  cin>>n>>m;
  ll ans=0;
  if(n>=2)
    ans+=(n*(n-1)/2);
  if(m>=2)
    ans+=(m*(m-1)/2);
  cout<<ans<<endl;
  
}

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

#include<iostream>
using namespace std;
int conv(int n){
 
  return n*(n-1)/2 << endl;
}
int main(){
  int a,b;
  cin >> a >> b;
  cout << (conv(a)+conv(b)) << endl;
}


Compiler output:
a.cc: In function 'int conv(int)':
a.cc:5:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |   return n*(n-1)/2 << endl;
      |          ~~~~~~~~~~^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int conv(int n){
 
  return n*(n-1)/2 << endl;
}
int main(){
  int a,b;
  cin >> a >> b;
  cout << conv(a)+conv(b) << endl;
}

Compiler output:
a.cc: In function 'int conv(int)':
a.cc:5:20: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    5 |   return n*(n-1)/2 << endl;
      |          ~~~~~~~~~~^~~~~~~
Language: C++

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

int main()
{
  int n, m;
  cin >> n >> m;
  
  int result = 0;
  
  for (int i = 2 ; i < 100=; i++)
  {
    if (n >= i) result += i - 1;
    if (m >= i) result += i - 1;
  }
  
  cout << result << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: expected primary-expression before ';' token
   11 |   for (int i = 2 ; i < 100=; i++)
      |                            ^
Language: C++

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

int main()
{
  int n, m;
  cin >> n >> m;
  
  int result = 0;
  
  for (int i = 2 ; i < 100; i++)
  {
    if (n >= i) result += i - 1;
    if (m >= i) result += i - 1;
  }
  
  cout << result << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'std'
    2 | using std;
      |       ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> n >> m;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout << result << 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:17:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |   cout << result << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/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 main(){
    int M,N,b;
    scanf("%d%d",&N,&M);
	N = N(N-1)/2;
	M = M(M-1)/2;
	b = N+M;
	printf("%d\n",b);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: called object 'N' is not a function or function pointer
    5 |         N = N(N-1)/2;
      |             ^
main.c:3:11: note: declared here
    3 |     int M,N,b;
      |           ^
main.c:6:13: error: called object 'M' is not a function or function pointer
    6 |         M = M(M-1)/2;
      |             ^
main.c:3:9: note: declared here
    3 |     int M,N,b;
      |         ^
Language: C++

#include<iostream>
using namespace std;

int main() {
	int N, M;
	cin >> N >> M;

	cout << N*(N-1)/2 + M*(M-1)/2 << endl;
	return 0;


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

#include<iostrem>
using namespace std;

int main(){
  int N,M,ans;
  cin>>N>>M;
  ans=N*(N-1)/2+M*(M-1)/2;
  cout<<ans;
}

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

#include<iostream>
#include<unordered_set>
#include<unordered_map>
#include<array>
#include<memory>
#include<iterator>

int main() {
  using namespace std;

  auto n = 0;
  cin >> n;

  array<int, 200000> balls;
  constexpr int f = 0;
  balls.fill(f);
  for(int i = 0; i < n; i++)
  {
    int num = 0;
    cin >> num;
    balls[i] = num;
  }

  unordered_set<int> uniqueBalls(
      make_move_iterator(balls.begin()),
      make_move_iterator(balls.end())
    );
  uniqueBalls.erase(0);
  // value, count
  unordered_map<int, int> countBalls;
  long long cxcm1A = 0;
  for (const auto &b : uniqueBalls)
  {
    const auto && c = count(balls.begin(), balls.end(), b);
    countBalls.emplace(b, c);
    cxcm1A += c * (c - 1);
  }

  for(int i = 0; i < n; i++)
  {
    const int & kCount = countBalls.at(balls[i]);
    const long long && mCxcm1 = kCount * (kCount - 1);
    const long long && kCxcm1 = (kCount - 1) * ((kCount - 1) - 1);
    const long long && count = cxcm1A - mCxcm1 +  kCxcm1;
    cout << count / 2 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:23: error: 'count' was not declared in this scope
   34 |     const auto && c = count(balls.begin(), balls.end(), b);
      |                       ^~~~~
Language: Java

public class Main{
  
 public static void main(String[] args){
   
  	Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
   int M = sc.nextInt();
   System.out.println(N * N -1 / 2 + M  * M- 1 /2);
 }
  
  
}

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

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

int main() {
  int M , N;
  cin >> M >> N;
  
  cout << (N(N-1))/2 + (M(M-1))/2 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'N' cannot be used as a function
    8 |   cout << (N(N-1))/2 + (M(M-1))/2 << endl;
      |            ~^~~~~
a.cc:8:26: error: 'M' cannot be used as a function
    8 |   cout << (N(N-1))/2 + (M(M-1))/2 << endl;
      |                         ~^~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n,m;
  cin>>n>>m;
  
  int ans=n＊(n-1)/2+m＊(m-1)/2;
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'n\U0000ff0a' was not declared in this scope
    8 |   int ans=n＊(n-1)/2+m＊(m-1)/2;
      |           ^~~
a.cc:8:22: error: 'm\U0000ff0a' was not declared in this scope
    8 |   int ans=n＊(n-1)/2+m＊(m-1)/2;
      |                      ^~~
Language: C++

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

int main(){
	int n,m; cin>>n>>m;
  ll ans = 0;
  if(n!=0) ans+= n*(n-1)/2;
  if(m!=0) ans+= m*(m-1)/2;
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         int n,m; cin>>n>>m;
      |                  ^~~
      |                  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:3: error: 'll' was not declared in this scope
    6 |   ll ans = 0;
      |   ^~
a.cc:7:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    7 |   if(n!=0) ans+= n*(n-1)/2;
      |            ^~~
      |            abs
a.cc:8:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |   if(m!=0) ans+= m*(m-1)/2;
      |            ^~~
      |            abs
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout<<ans<<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:9:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   cout<<ans<<endl;
      |         ^~~
      |         abs
a.cc:9:14: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout<<ans<<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>
#include<algorithm>
using namespace std;
#define ll long long
#define rep(i,n) for(int i=0; i < n; i++)



void main(){
	int N, M;
	cin >> N >> M;

	int tmpn=N*(N-1)/2, tmpm=M*(M-1)/2;
	
	
	if (N <= 1) tmpn= N / 2;
	if (M <= 1) tmpm = M / 2;


	int ans = tmpn + tmpm;
	cout << ans << endl;

}


Compiler output:
a.cc:9:1: error: '::main' must return 'int'
    9 | void main(){
      | ^~~~
Language: C++

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


//i ~N - 1の範囲にNの約数が存在するか
void main(){
	int N, M;
	cin >> N >> M;

	int tmpn=N*(N-1)/2, tmpm=M*(M-1)/2;
	
	
	if (N <= 1) tmpn= N / 2;
	if (M <= 1) tmpm = M / 2;


	int ans = tmpn + tmpm;
	cout << ans << endl;

}


Compiler output:
a.cc:9:1: error: '::main' must return 'int'
    9 | void main(){
      | ^~~~
Language: C++

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

int main(){
  int n,m;
  cin >> n >> m;
  int k =0;
  k += n*(n-1);
  K += m*(m-1);
  k /= 2;
  cout << k << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'K' was not declared in this scope
    9 |   K += m*(m-1);
      |   ^
Language: C++

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

int main(){
  int n,m;
  cin >> n >> m;
  int k =0;
  k += n*(n-1);
  K += m*(m-1);
  k /= 2;
  cout << k << endl;
  
  return 0;
}


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

import java.io.*;
 
public class Main {
 
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String[] info = line.split(" ");
		int N = Integer.parseInt(info[0]);
		int M = Integer.parseInt(info[1]);
		
		System.out.println(N*(N-1)/2 - M*(M-1)/2);
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
  long long int N;
  double k=N*1.0/3.0;
  printf("%.12f\n",k*k*k);
  return 0;
}

  return 0;
}


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

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
  long long int N:
  cout<<pow((N/3.0),3);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: found ':' in nested-name-specifier, expected '::'
    6 |   long long int N:
      |                  ^
      |                  ::
a.cc:6:17: error: 'N' has not been declared
    6 |   long long int N:
      |                 ^
a.cc:7:7: error: qualified-id in declaration before '<<' token
    7 |   cout<<pow((N/3.0),3);
      |       ^~
Language: C++

#include<iostream>
#include<math>
using namespace std;
int main()
{
  long long int N:
  cout<<pow((N/3.0),3);
  return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
  decltype(10000000) N;
  int c1=0,c=1;
  cin>>N;
  int i=1,j=1,k=1;
  for(i=1;i+j+k<N;i++)
  {
    for(j=1;i+j+k<N;k++)
    {
      for(k=1;i+j+k<N;k++)
      {
        c=i*j*k;
        if(c>c1)
          c1=c
      }
    }
  }
  cout<<c1;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before '}' token
   17 |           c1=c
      |               ^
      |               ;
   18 |       }
      |       ~
Language: C++

#include<iostream>
2 using namespace std;
 int main(){
 int N,M;
 cin>>N>>M;
 cout<<N*(N-1)/2+M*(M-1)/2<<endl;
 return 0;
 }

Compiler output:
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2 using namespace std;
      | ^
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |  cin>>N>>M;
      |  ^~~
      |  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:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |  cout<<N*(N-1)/2+M*(M-1)/2<<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:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |  cout<<N*(N-1)/2+M*(M-1)/2<<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.lang.*; 

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		int N = scan.nextInt();
		int M = scan.nextInt();
		
		System.out.println((N(N-1)/2)+(M(M-1)/2));
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
		System.out.println((N(N-1)/2)+(M(M-1)/2));
		                    ^
  symbol:   method N(int)
  location: class Main
Main.java:11: error: cannot find symbol
		System.out.println((N(N-1)/2)+(M(M-1)/2));
		                               ^
  symbol:   method M(int)
  location: class Main
2 errors
Language: C++

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

int main()
{
  int m,n,sum=0;
  cin>>m>>n;
  if(m>1)
  {
    sum+=m*(m-1)/2;
  }
  if(n>2)
  {
	sum+=n*(n-1)/2;
  }
  cout<<sum;
  return 0;
}


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

int m,n,sum=0;
  cin>>m>>n;
  if(m>1)
  {
    sum+=m*(m-1)/2;
  }
  if(n>2)
  {
	sum+=n*(n-1)/2;
  }
  cout<<sum;


Compiler output:
a.cc:2:3: error: 'cin' does not name a type
    2 |   cin>>m>>n;
      |   ^~~
a.cc:3:3: error: expected unqualified-id before 'if'
    3 |   if(m>1)
      |   ^~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(n>2)
      |   ^~
a.cc:11:3: error: 'cout' does not name a type
   11 |   cout<<sum;
      |   ^~~~
Language: C++

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

int main()
{
  int m,n,sum=0;
  cin>>m>>n;
  if(m>1)
  {
    sum+=m*(m-1)/2;
  }
  if(n>2)
  {
	sum+=n*(n-1)/2;
  }
  cout<<sum;
}

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

#include <bits/stdc++.h>

#define forn(i, n) for (int i = 0; i < int(n); ++i)
#define for1(i, n) for (int i = 1; i <= int(n); ++i)
#define fore(i, l, r) for (int i = int(l); i <= int(r); ++i)
#define ford(i, n) for (int i = int(n)-1; i >= 0; --i)
#define pb push_back
#define eb emplace_back
#define ms(a, x) memset(a, x, sizeof(a))
#define F first
#define S second
#define endl '\n'
#define all(x) (x).begin(),(x).end()
#define de(x) cout<<#x<<" = "<<(x)<<endl
#define de2(x,y) cout<<#x<<" = "<<(x) <<' '<< #y<<" = "<<y<<endl;

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
const int INF = 0x3f3f3f3f;
mt19937 gen(chrono::high_resolution_clock::now().time_since_epoch().count());
ll nxt(){ll x;cin>>x;return x;}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
	ll  n,m;
	cin>>n>>m;
	cout<<(n)*(n-1)/2+m*(m-1)/2;
    return 0;
}

#include <bits/stdc++.h>

#define forn(i, n) for (int i = 0; i < int(n); ++i)
#define for1(i, n) for (int i = 1; i <= int(n); ++i)
#define fore(i, l, r) for (int i = int(l); i <= int(r); ++i)
#define ford(i, n) for (int i = int(n)-1; i >= 0; --i)
#define pb push_back
#define eb emplace_back
#define ms(a, x) memset(a, x, sizeof(a))
#define F first
#define S second
#define endl '\n'
#define all(x) (x).begin(),(x).end()
#define de(x) cout<<#x<<" = "<<(x)<<endl
#define de2(x,y) cout<<#x<<" = "<<(x) <<' '<< #y<<" = "<<y<<endl;

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
const int INF = 0x3f3f3f3f;
mt19937 gen(chrono::high_resolution_clock::now().time_since_epoch().count());
ll nxt(){ll x;cin>>x;return x;}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
	ll  n,m;
	cin>>n>>m;
	cout<<(n)*(n-1)/2+m*(m-1)/2;
    return 0;
}



Compiler output:
a.cc:54:11: error: redefinition of 'const int INF'
   54 | const int INF = 0x3f3f3f3f;
      |           ^~~
a.cc:21:11: note: 'const int INF' previously defined here
   21 | const int INF = 0x3f3f3f3f;
      |           ^~~
a.cc:55:9: error: redefinition of 'std::mt19937 gen'
   55 | mt19937 gen(chrono::high_resolution_clock::now().time_since_epoch().count());
      |         ^~~
a.cc:22:9: note: 'std::mt19937 gen' previously declared here
   22 | mt19937 gen(chrono::high_resolution_clock::now().time_since_epoch().count());
      |         ^~~
a.cc:56:4: error: redefinition of 'll nxt()'
   56 | ll nxt(){ll x;cin>>x;return x;}
      |    ^~~
a.cc:23:4: note: 'll nxt()' previously defined here
   23 | ll nxt(){ll x;cin>>x;return x;}
      |    ^~~
a.cc:58:5: error: redefinition of 'int main()'
   58 | int main() {
      |     ^~~~
a.cc:25:5: note: 'int main()' previously defined here
   25 | int main() {
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,m,sum=0;
  cin>>n>>m;
  if(n>0)sum+=n*(n-1)*0.5
  if(m>0)sum+=m*(m-1)*0.5
   cout<<sum<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected ';' before 'if'
    6 |   if(n>0)sum+=n*(n-1)*0.5
      |                          ^
      |                          ;
    7 |   if(m>0)sum+=m*(m-1)*0.5
      |   ~~
Language: C++

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

int main(){
  int N , M;
  cin >> N >> M;
  int n = N - 1;
  int m = M - 1;
  cout << N * n / 2 + M * m / 2 << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
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 >> N >> M;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout << N * n / 2 + M * m / 2 << 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:9:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   cout << N * n / 2 + M * m / 2 << endl;
      |                                    ^~~~
      |                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

    #include <iostream>
    #include <cmath>
    using namespace std;
     
    int main() {
      	int N;
      	double distance = 0;
      	double distance2 = 0;
      	cin >> N;
      	int x[200], y[200];
      	for (int i = 0; i < N; i++){
          	cin >> x[i] >> y[i];
        }
      
      	for (int a = 0; a < N; a++){
          	for (int b = 0; b < N; b++){
              	distance2 = (x[a] - x[b]) * (x[a] - x[b]) + (y[a] - y[b]) * (y[a] - y[b]);
                 //cout << sqrt(distance) << endl;
              	if (distance2 > distance)
                  distance = distance2;
            }
        }
      	cout << sqrt(distance) << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:40: error: expected '}' at end of input
   23 |         cout << sqrt(distance) << endl;
      |                                        ^
a.cc:5:16: note: to match this '{'
    5 |     int main() {
      |                ^
Language: C++

#include <iostream>
using namepsace std;
int main() {
    int n, m;
    cin >> n >> m;
    cout << n * (n - 1) / 2 + m * (m - 2) / 2;
    return 0;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepsace'
    2 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> n >> m;
      |     ^~~
      |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     cout << n * (n - 1) / 2 + m * (m - 2) / 2;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#using <System.dll>
//#using <System.Collections.Generic.dll>
//#using <Sytem.Linq.dll>
using namespace System;
//using namespace System::Collections::Generic;
//using namespace System::Linq;

void main() {
	Console::WriteLine("Hello");
	return;
}



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #using
    1 | #using <System.dll>
      |  ^~~~~
a.cc:4:17: error: 'System' is not a namespace-name
    4 | using namespace System;
      |                 ^~~~~~
a.cc:8:1: error: '::main' must return 'int'
    8 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'Console' has not been declared
    9 |         Console::WriteLine("Hello");
      |         ^~~~~~~
a.cc:10:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |         return;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,M;
  cin>>N>>M;
  int a=0,b=0,i=0,j=0;
  while(i<N){
    a+=i;
    i++
  }
  while(j<M){
    b+=j;
    j++
  }
  cout<<a+b<<endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected ';' before '}' token
    9 |     i++
      |        ^
      |        ;
   10 |   }
      |   ~     
a.cc:13:8: error: expected ';' before '}' token
   13 |     j++
      |        ^
      |        ;
   14 |   }
      |   ~
Language: C++

#include <bits/sstdc++.h>
using namespace std;
int main(){
  int N,M;
  cin>>N>>M;
  cout<<N*(N+1)/2+M*(M+1)/2<<endl;
  
}

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

include <stdio.h>

int main(void){
	int N,M;
    int temp;
    int result=0;
    scanf("%d%d",&N,&M);
    
    
    temp=1;
	if(N>1){
    	for(i=N;i>0;i--){
    		temp*=i;
		}
	}
    else temp=0;
    result+=temp;
    
      temp=1;
	if(M>1){
    	for(i=M;i>0;i--){
    		temp*=i;
		}
	}
    else temp=0;
    result+=temp;
    
    
    printf("%d\n",result);

return 0;
}


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

include <stdio.h>

int main(void){
	int N,M;
    int temp;
    int result=0;
    scanf("%d%d",&N,&M);
    
    
    temp=1;
	if(N>1){
    	for(i=N;i>0;i--){
    		temp*=i;
		}
	}
    else temp=0;
    result+=temp;
    
      temp=1;
	if(M>1){
    	for(i=M;i>0;i--){
    		temp*=i;
		}
	}
    else temp=0;
    result+=temp;
    
    
    printf("%d\n",result);

return 0;
}

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

import math
from scipy.misc import comb

def combinations_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

N, M = map(int, input().split())

answer = 0
if N >= 2:
    answer += combinations_count(N, 2)
if M >= 2:
    answer += combinations_count(M, 2)
print(answer)

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<stdio.h>
#include<string.h>
int main()
{
char str[100];
scanf("%s",str);
int i,j,n,flag=0,k,s;
  n=strlen(str);
  for(i=n;i>=1;i--)
  {
    str[i]=str[i-1];
  }
  for(i=1;i<=n/2;i++)
  {
    if(str[i]!=str[n+1-i]
       {
         flag=2;
         break;
       }
  }
       j=(n-1)/4;
       k=(n-1)/2;
       for(i=1;i<=j;i++)
       {
         if(str[i]!=str[k+1-i]
            {
              flag=2;
              break;
            }
         }
            k=(n+3)/2;
            j=(1+(n-3)/2)/2;
            s=0;
            for(i=k;i<n;i++)
            {
              s++;
              if(str[i]!=str[n+1-s];
                 {
                   flag=2;
                   break;
                 }
              }
                 if(flag==0)
                 printf("YES");
                 else
                 printf("NO");
}


Compiler output:
main.c: In function 'main':
main.c:15:26: error: expected ')' before '{' token
   15 |     if(str[i]!=str[n+1-i]
      |       ~                  ^
      |                          )
   16 |        {
      |        ~                  
main.c:20:3: error: expected expression before '}' token
   20 |   }
      |   ^
main.c:25:31: error: expected ')' before '{' token
   25 |          if(str[i]!=str[k+1-i]
      |            ~                  ^
      |                               )
   26 |             {
      |             ~                  
main.c:30:10: error: expected expression before '}' token
   30 |          }
      |          ^
main.c:37:36: error: expected ')' before ';' token
   37 |               if(str[i]!=str[n+1-s];
      |                 ~                  ^
      |                                    )
main.c:42:15: error: expected expression before '}' token
   42 |               }
      |               ^
Language: C

#include<stdio.h>
int main()
{
int n,m;
scanf("%d %d",&n,&m);
int sum;
sum=(n*(n-1))/2+(m*(m-1)/2;
printf("%d",sum);
}

Compiler output:
main.c: In function 'main':
main.c:7:27: error: expected ')' before ';' token
    7 | sum=(n*(n-1))/2+(m*(m-1)/2;
      |                 ~         ^
      |                           )
main.c:8:18: error: expected ';' before '}' token
    8 | printf("%d",sum);
      |                  ^
      |                  ;
    9 | }
      | ~
Language: C++

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

ll chose2(ll n){
	return n*(n-1)/2;
}

int main(){
	int n;
    cin >> n;
    vector<int> a(n);
    rep(i,n) cin >> a[i];
    rep(i,n) a[i]--;
    vector<int> cnt(n);
    rep(i,n) cnt[a[i]]++;
    ll tit = 0;
    rep(i,n){
    	ll ans =tot;
        ans-=chose2(cnt[a[i]]);
        ans+=chose2(cnt[a[i]]-1);
        cout << ans << endl;
   }
   return 0;
}


Compiler output:
a.cc:4:12: error: 'Long' does not name a type; did you mean 'long'?
    4 | using ll = Long Long;
      |            ^~~~
      |            long
a.cc:5:24: error: expected ';' before 'll'
    5 | using P = pair<int,int>
      |                        ^
      |                        ;
    6 | 
    7 | ll chose2(ll n){
      | ~~                      
a.cc: In function 'int main()':
a.cc:19:5: error: 'll' was not declared in this scope
   19 |     ll tit = 0;
      |     ^~
a.cc:21:11: error: expected ';' before 'ans'
   21 |         ll ans =tot;
      |           ^~~~
      |           ;
a.cc:22:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |         ans-=chose2(cnt[a[i]]);
      |         ^~~
      |         abs
a.cc:22:14: error: 'chose2' was not declared in this scope; did you mean 'close'?
   22 |         ans-=chose2(cnt[a[i]]);
      |              ^~~~~~
      |              close
Language: C++

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

int main() {
  int N ,M;
  sin >> N >> M;
  int allN = 0, allM = 0;
  if (N >= 2) {
    allN = (N * (N - 1)) / 2;
  }
  if (M >= 2) {
    allM = (M * (M - 1)) / 2;
  }
  cout << allN + allM << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'sin' was not declared in this scope
    7 |   sin >> N >> M;
      |   ^~~
Language: C++

#include<iostream>
#include<cmath>
#include<numeric>
#include<functional>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n;i++)
#define ll long long
#define modbig (10*10*10*10*10*10*10*10*10+7)
using namespace std;

int main(){
  double l;
  cin>>l;
  cout<<setprecision(10)<<l*l*l/27;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'setprecision' was not declared in this scope
   18 |   cout<<setprecision(10)<<l*l*l/27;
      |         ^~~~~~~~~~~~
a.cc:9:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    8 | #include<map>
  +++ |+#include <iomanip>
    9 | #define rep(i,n) for(int i=0;i<n;i++)
Language: C++

#include <bints/stdc++.h>
 
using namespace std;
 
int main() {
	int b, c, cnt;
  	cin >> b >> c;
  	b--; c--;
  	while(b--) {
      cnt += b;
    }
  while(c--) {
    cnt += c;
  }
  cout << cnt << endl;
}

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

include <bints/stdc++.h>

using namespace std;

int main() {
	int b, c, cnt;
  	cin >> b >> c;
  	b--; c--;
  	while(b--) {
      cnt += b;
    }
  while(c--) {
    cnt += c;
  }
  cout << cnt << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bints/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin >> b >> c;
      |         ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << cnt << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << cnt << endl;
      |                  ^~~~
Language: C++

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

using namespace std;

bool  func (char *str, int len);

int main(void)
{
	char str[100];
	char str2[50];
    bool ret;
	int len;
	
	cin >> str;

	len = strlen( str );#include <iostream>
#include <string.h>

using namespace std;

bool  func (char *str, int len);

int main(void)
{
	char str[100];
	char str2[50];
    bool ret;
	int len;
	
	cin >> str;

	len = strlen( str );
	
	ret = func ( str, len);	
	ret = func ( str, len/2 );
	
	if ( ret == true ) {	
		cout << "yes" << endl;
	}
	else {
		cout << "no" << endl;
	}
	return 0;
}

bool func ( char* str, int len )
{
	bool retBool = false;
	int i, j;
	
	i = 0;
	j = len - 1;
	
	while ( i <= (len/2) ) {
		 if (str[i] != str[j]) {
		 	break;
		 }
		 i++;
		 j--;
	}
	
	if (i >= j) {
		retBool = true;
	}
	
	return retBool;
}
	
	if ( func ( str, len) && func ( str, len / 2) ) {	
		cout << "yes" << endl;
	}
	else {
		cout << "no" << endl;
	}
	return 0;
}

bool func ( char* str, int len )
{
	bool retBool = false;
	int i, j;
	
	i = 0;
	j = len - 1;
	
	while ( i <= (len/2) ) {
		 if (str[i] != str[j]) {
		 	break;
		 }
		 i++;
		 j--;
	}
	
	if (i >= j) {
		retBool = true;
	}
	
	return retBool;
}

Compiler output:
a.cc:17:29: error: stray '#' in program
   17 |         len = strlen( str );#include <iostream>
      |                             ^
a.cc: In function 'int main()':
a.cc:17:30: error: 'include' was not declared in this scope
   17 |         len = strlen( str );#include <iostream>
      |                              ^~~~~~~
a.cc:17:47: error: expected primary-expression before '>' token
   17 |         len = strlen( str );#include <iostream>
      |                                               ^
a.cc:20:1: error: expected primary-expression before 'using'
   20 | using namespace std;
      | ^~~~~
a.cc:25:1: error: a function-definition is not allowed here before '{' token
   25 | {
      | ^
a.cc:48:1: error: a function-definition is not allowed here before '{' token
   48 | {
      | ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll,N,M;
int main()
{
  cin >> N >> M;
  ans = N*(N-1)/2;
  ans += M*(M-1)/2;
  cout >> ans >> endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected primary-expression before '>>' token
   11 |   cin >> N >> M;
      |            ^~
a.cc:11:16: error: expected primary-expression before ';' token
   11 |   cin >> N >> M;
      |                ^
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = N*(N-1)/2;
      |   ^~~
      |   abs
a.cc:12:10: error: expected primary-expression before '*' token
   12 |   ans = N*(N-1)/2;
      |          ^
a.cc:12:13: error: expected primary-expression before '-' token
   12 |   ans = N*(N-1)/2;
      |             ^
a.cc:13:11: error: expected primary-expression before '*' token
   13 |   ans += M*(M-1)/2;
      |           ^
a.cc:13:14: error: expected primary-expression before '-' token
   13 |   ans += M*(M-1)/2;
      |              ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  cin >> n >> m;
  ans = n*(n-1)/2;
  ans += m*(m-1)/2;
  cout >> ans >> endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'n' was not declared in this scope; did you mean 'yn'?
   11 |   cin >> n >> m;
      |          ^
      |          yn
a.cc:11:15: error: 'm' was not declared in this scope; did you mean 'tm'?
   11 |   cin >> n >> m;
      |               ^
      |               tm
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = n*(n-1)/2;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  cin >> N >> M;
  ans = N*(N-1)/2;
  ans += M*(M-1)/2;
  cout >> ans >> endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'N' was not declared in this scope
   11 |   cin >> N >> M;
      |          ^
a.cc:11:15: error: 'M' was not declared in this scope
   11 |   cin >> N >> M;
      |               ^
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = N*(N-1)/2;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  cin >> N >> M;
  ans = N*(N-1)/2;
  ans += M*(M-1)/2;
  cout >> ans >> endl;  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'N' was not declared in this scope
   11 |   cin >> N >> M;
      |          ^
a.cc:11:15: error: 'M' was not declared in this scope
   11 |   cin >> N >> M;
      |               ^
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = N*(N-1)/2;
      |   ^~~
      |   abs
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  cin >> N >> M;
  ans = N*(N-1)/2;
  ans += M*(M-1)/2;
  cout >> ans >> endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'N' was not declared in this scope
   11 |   cin >> N >> M;
      |          ^
a.cc:11:15: error: 'M' was not declared in this scope
   11 |   cin >> N >> M;
      |               ^
a.cc:12:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   12 |   ans = N*(N-1)/2;
      |   ^~~
      |   abs
Language: C++

include <bits/stdc++.h>
#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
int main()
{
  cin >> N >> M;
  ans = N*(N-1)/2;
  ans += M*(M-1)/2;
  cout >> ans >> endl;
  
  
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope
   11 |   cin >> N >> M;
      |   ^~~
a.cc:11:10: error: 'N' was not declared in this scope
   11 |   cin >> N >> M;
      |          ^
a.cc:11:15: error: 'M' was not declared in this scope
   11 |   cin >> N >> M;
      |               ^
a.cc:12:3: error: 'ans' was not declared in this scope
   12 |   ans = N*(N-1)/2;
      |   ^~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout >> ans >> endl;
      |   ^~~~
a.cc:14:18: error: 'endl' was not declared in this scope
   14 |   cout >> ans >> endl;
      |                  ^~~~
Language: C++

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

int main() {
	int L;
	cin >> L;
	double ans;
	ans = pow((L / 3),3);
	cout << ans;

	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'pow' was not declared in this scope
    9 |         ans = pow((L / 3),3);
      |               ^~~
Language: C++

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

int main() {
	double L,ans;
	cin >> L;
	ans = pow((L / 3),3);
	cout << ans;

	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'pow' was not declared in this scope
    8 |         ans = pow((L / 3),3);
      |               ^~~
Language: C++

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

int main() {
  int n, m;
  cin >> n >> m;
  cout << n * (n - 1) / 2 + m*(m -1 )/2 <<< endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:9:43: error: expected primary-expression before '<' token
    9 |   cout << n * (n - 1) / 2 + m*(m -1 )/2 <<< endl;
      |                                           ^
Language: C++

#include <cstddef>
#include <limits>
#include <climits>
#include <cfloat>
#include <cstdint>
#include <cstdlib>
#include <new>
#include <typeinfo>
#include <exception>
#include <initializer_list>
#include <stdexcept>
#include <cassert>
#include <cerrno>
#include <system_error>
#include <string>

#if __has_include(<string_view>)
#include <string_view>
#endif

#include <array>
#include <deque>
#include <forward_list>
#include <list>
#include <vector>
#include <map>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <stack>
#include <iterator>
#include <algorithm>
#include <cfenv>
#include <random>
#include <numeric>
#include <cmath>
#include <iosfwd>
#include <iostream>
#include <ios>
#include <streambuf>
#include <istream>
#include <ostream>
#include <iomanip>
#include <sstream>
#include <fstream>
#if __has_include(<filesystem>)
#include <filesystem>
#endif

#include <cstdio>
#include <cinttypes>

#include <regex>
#include <atomic>
#include <thread>
#include <mutex>
#include <shared_mutex>
#include <condition_variable>
#include <future>

std::cin >> x
std::cout << x

Compiler output:
a.cc:62:6: error: 'cin' in namespace 'std' does not name a type
   62 | std::cin >> x
      |      ^~~
In file included from a.cc:39:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

std::cin >> x
std::cout << x

Compiler output:
a.cc:1:6: error: 'cin' in namespace 'std' does not name a type
    1 | std::cin >> x
      |      ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | std::cin >> x
Language: C++

#include <iostream>
using namespace std;
int main()
{
  itn N, M;
  cin >> N >> M;
  cout << M*(M-1)/2 + N*(N-1)/2 << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
    5 |   itn N, M;
      |   ^~~
      |   int
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> M;
      |          ^
a.cc:6:15: error: 'M' was not declared in this scope
    6 |   cin >> N >> M;
      |               ^
Language: C++

int main(){
  int n,m;cin>>n>>m;
 cout<< ((n*(n+1))/2 + (m*(m+1))/2) << endl; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:11: error: 'cin' was not declared in this scope
    2 |   int n,m;cin>>n>>m;
      |           ^~~
a.cc:3:2: error: 'cout' was not declared in this scope
    3 |  cout<< ((n*(n+1))/2 + (m*(m+1))/2) << endl;
      |  ^~~~
a.cc:3:40: error: 'endl' was not declared in this scope
    3 |  cout<< ((n*(n+1))/2 + (m*(m+1))/2) << endl;
      |                                        ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repi(i, s, n) for (int i = (s); i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
 
typedef long long int ll;
typedef pair<int, int> P;
 
const long long INF = 3e18 + 12;
const int inf = 1e9;
 
int combination(int n, int r) {
  int num = 1;
  for (int i = 1; i <= r; i++) {
    num *= (n - i + 1) / i;
  }
  return num;
}
int main() {
  int a, b;
  cin >> a >> b;
 
  int c = 0;
  if (a >= 2 && b >= 2) {
    c = calcNumOfCombination(a, 2) + calcNumOfCombination(b, 2);
  } else if (a >= 2 && b < 2) {
    c = calcNumOfCombination(a, 2);
  } else if (a < 2 && b >= 2) {
    c = calcNumOfCombination(b, 2);
  }
  cout << c << endl;
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: 'calcNumOfCombination' was not declared in this scope
   27 |     c = calcNumOfCombination(a, 2) + calcNumOfCombination(b, 2);
      |         ^~~~~~~~~~~~~~~~~~~~
a.cc:29:9: error: 'calcNumOfCombination' was not declared in this scope
   29 |     c = calcNumOfCombination(a, 2);
      |         ^~~~~~~~~~~~~~~~~~~~
a.cc:31:9: error: 'calcNumOfCombination' was not declared in this scope
   31 |     c = calcNumOfCombination(b, 2);
      |         ^~~~~~~~~~~~~~~~~~~~