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

//#include<iostream>
#includr<bits/stdc++.h>
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:2: error: invalid preprocessing directive #includr; did you mean #include?
    2 | #includr<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> N >> M;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | //#include<iostream>
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << N * (N - 1) /2 + M * (M - 1) / 2 << endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:49: error: 'endl' was not declared in this scope
    8 |     cout << N * (N - 1) /2 + M * (M - 1) / 2 << endl;
      |                                                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | //#include<iostream>
Language: C++

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

int combinations(int s, int t){
    int r = s - t;
    if(r < 0) return 0;
    long int m = 1, c = 1;
    for(int i = 0; i < r; i++){
        m *= (s - i);
        c *= (i + 1);
    }
    return m / c;
}


int main(){
    int N, M;
    cin >> N >> M;
    cout << combinations(N, 2) + combinations(M, 2) << endl;
    return 0;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #includr; did you mean #include?
    2 | #includr<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:19:5: error: 'cin' was not declared in this scope
   19 |     cin >> N >> M;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | //#include<iostream>
a.cc:20:5: error: 'cout' was not declared in this scope
   20 |     cout << combinations(N, 2) + combinations(M, 2) << endl;
      |     ^~~~
a.cc:20:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:56: error: 'endl' was not declared in this scope
   20 |     cout << combinations(N, 2) + combinations(M, 2) << endl;
      |                                                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | //#include<iostream>
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '>' token
    7 |   cin>>n>>>m;
      |           ^
Language: C++

#include <iostream>
using namepace std;

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace 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 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:11: error: expected primary-expression before '>' token
    7 |   cin>>n>>>m;
      |           ^
a.cc:9:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   cout<<n*(n-1)/2 + m*(m-1)/2;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Arrays;
import java.util.Scanner;
import java.util.*;

public class Roughcp {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {

			int n = scanner.nextInt();
			int m = scanner.nextInt();

			int[][] combination = combination();

			int N = 0;
			int M = 0;

			if (n >= 2) {
				N = combination[n][2] % 1000000007;
			}

			if (m >= 2) {
				M = combination[m][2] % 1000000007;
			}

			int RES = N + M;

			System.out.println(RES);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static int[][] combination() {
		int combination[][] = new int[1001][1001];
		for (int i = 0; i < 1001; i++)
			for (int j = 0; j <= i; j++) {
				if (j == 0 || j == i)
					combination[i][j] = 1;
				else
					combination[i][j] = combination[i - 1][j - 1] % 1000000007 + combination[i - 1][j] % 1000000007;
			}
		return combination;
	}
}

Compiler output:
Main.java:5: error: class Roughcp is public, should be declared in a file named Roughcp.java
public class Roughcp {
       ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class Roughcp {

	public static void main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {

			int n = scanner.nextInt();
			int m = scanner.nextInt();

			int[][] combination = combination();

			int N = 0;
			int M = 0;

			if (n >= 2) {
				N = combination[n][2] % 1000000007;
			}

			if (m >= 2) {
				M = combination[m][2] % 1000000007;
			}

			int RES = N + M;

			System.out.println(RES);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static int[][] combination() {
		int combination[][] = new int[1001][1001];
		for (int i = 0; i < 1001; i++)
			for (int j = 0; j <= i; j++) {
				if (j == 0 || j == i)
					combination[i][j] = 1;
				else
					combination[i][j] = combination[i - 1][j - 1] % 1000000007 + combination[i - 1][j] % 1000000007;
			}
		return combination;
	}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected ';' before 'b'
    6 |    a=m*(m+1)/2
      |               ^
      |               ;
    7 |    b=n*(n+1)/2
      |    ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'x' cannot be used as a function
    9 |   pair=pair+ x(x-1)/2;
      |              ~^~~~~
a.cc:11:15: error: 'a' cannot be used as a function
   11 |   pair=pair+ a(a-1)/2;
      |              ~^~~~~
Language: C++

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

int main()
{
  int x,a,b,pair=0;
  cin>>x>>a;
  if(x>=2)
  pair=pair+ x(x-1)/2;
  if(a>=2)
  pair=pair+ a(a-1)/2;
  cout<<pair;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'x' cannot be used as a function
    9 |   pair=pair+ x(x-1)/2;
      |              ~^~~~~
a.cc:11:15: error: 'a' cannot be used as a function
   11 |   pair=pair+ a(a-1)/2;
      |              ~^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
long long int fa(int a)
{ long long int fac=1;
  for(int i=1;i<=a;i++)
   fac=fac*i;
 return fac;
}
 
int main()
{
  long long int x,a,b,pair=0;
  cin>>x>>a;
  if(x>=2)
  pair=pair+ x(x-1)/2;
  if(a>=2)
  pair=pair+ a(a-1)/2;
  cout<<pair;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'x' cannot be used as a function
   15 |   pair=pair+ x(x-1)/2;
      |              ~^~~~~
a.cc:17:15: error: 'a' cannot be used as a function
   17 |   pair=pair+ a(a-1)/2;
      |              ~^~~~~
Language: C++

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


int main(void) 
{
    int n,m;
    cin >> n >>m;
    int ans = choose2(n) + choose2(m);
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'choose2' was not declared in this scope; did you mean 'close'?
   11 |     int ans = choose2(n) + choose2(m);
      |               ^~~~~~~
      |               close
Language: C++

#include <bits/stdc++.h>
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define pb push_back
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ll long long
using namespace std;

const ll P = 1000000007;
int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; }
int lcm(int a, int b) { return a * b / gcd(a, b); }

int main()
{
  int n;
  cin >> n >> m;
  cout << n * max(n - 1, 0) + m * max(m - 1, 0) << endl;
  return 0;
}


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

int main(){
    int n,m;
    cin >> n >> m;

    cout << (n-1)*(n)/2 + m*(m-1)/2;
    return 0;
}


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

#include<iostream>
using namespace std;

int main(){
  int n,m,x,y;
  cin>>n>>m;
  if(n==0||n==1||n==2)
  x=((n==0||n==1)?0:1);

  if(m==0||m==1||m==2)
  y=((m==0||m==1)?0:1);
  
  if(n>2)
  x = (n*(n-1)/2);
  
  if(m>2)
  y = (m*(m-1)/2));

cout<<x+y;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: expected ';' before ')' token
   17 |   y = (m*(m-1)/2));
      |                  ^
      |                  ;
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n,m;
  cin>>n>>m;
  if(n==0||n==1||n==2)
  x=((n==0||n==1)?0:1);

  if(m==0||m==1||m==2)
  y=((m==0||m==1)?0:1);
  
  if(n>2)
  x = (n*(n-1)/2);
  
  if(m>2)
  y = (m*(m-1)/2));

cout<<x+y;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'x' was not declared in this scope
    8 |   x=((n==0||n==1)?0:1);
      |   ^
a.cc:11:3: error: 'y' was not declared in this scope
   11 |   y=((m==0||m==1)?0:1);
      |   ^
a.cc:14:3: error: 'x' was not declared in this scope
   14 |   x = (n*(n-1)/2);
      |   ^
a.cc:17:3: error: 'y' was not declared in this scope
   17 |   y = (m*(m-1)/2));
      |   ^
a.cc:19:7: error: 'x' was not declared in this scope
   19 | cout<<x+y;
      |       ^
a.cc:19:9: error: 'y' was not declared in this scope
   19 | cout<<x+y;
      |         ^
Language: C++

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

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

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

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

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

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

#include<iostream>
#define YesNo(bool) if(true){std::cout << "Yes\n";}else{std::cout<<"No\n";}

int main()
{
    int n,m;
    std::cout << Combination(n,2) + Combination(m,2) << std::endl;
}

int Combination(int n,int m)
{
    int c = 1;
    int d = 1;
    int e = 1;
    for(int i = 1;i < m+1;i++)
    {
        c *= i;
    }
    for(int i = 1;i < n+1;i++)
    {
        d *= i;
    }
    for(int i = 1;i < m-n+1;i++)
    {
        e *= i;
    }
    return c * d / e;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'Combination' was not declared in this scope
    7 |     std::cout << Combination(n,2) + Combination(m,2) << std::endl;
      |                  ^~~~~~~~~~~
Language: C++

/* SANDEEP YADAv*/
#include<bits/stdc++.h>
using namespace std;
#define lld long long int
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define mod 1000000007
#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
lld gcd(lld a,lld b){ if(a<b) { a=a+b; b=a-b; a=a-b;}while(b!=0){lld r=a%b; a=b; b=r;} return a;}
long long power(long long a, long long b, long long m) {a %= m;long long res = 1;while (b > 0) {if (b & 1)res = res * a % m;a = a * a % m;b >>= 1;}return res;}
void judge()
{
      #ifndef ONLINE_JUDGE
    freopen("input.txt","r",stdin);
    freopen("output.txt","w",stdout);
    freopen("error.txt","w",stderr);
    #endif
}

int main()
{
    fastio;
    judge();

    lld n,;
    cin>>n>>m;

    cout<<n*(n-1)/2+m*(m-1)/2;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:11: error: expected unqualified-id before ';' token
   27 |     lld n,;
      |           ^
a.cc:28:13: error: 'm' was not declared in this scope
   28 |     cin>>n>>m;
      |             ^
Language: C++

#include<bits/stdc++.h>

#define ll long long
#define pb push_back
#define mp make_pair

using namespace std;

int n,m;

int calc(int x) {
    return (x * (x - 1)) / 2;
}

int main () {
    cin >> n >> m;

    ans += calc(n);
    ans += calc(m);

    cout << ans;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |     ans += calc(n);
      |     ^~~
      |     abs
Language: C++

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

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


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

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

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

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

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

    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: 'n' was not declared in this scope
   20 |     n = ((a*(a-1))/2);
      |     ^
a.cc:21:5: error: 'm' was not declared in this scope
   21 |     m = ((b*(b-1))/2);
      |     ^
Language: C++

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


int main()
{
    int i,j,n,count=0;
    char a[100],c[100], b[100];

    scanf("%s",a);
    strcpy(c,a);

    int l=strlen(a);

    strrev(a);



    if(strcmp(a, c)==0){
        count++;
        if(count==0){
            printf("no\n");
            return 0;
        }
    }
    strrev(a);



    for(i=0,j=((l-1)/2)-1;i<(l-1)/2;i++,j--){
        b[i]=a[j];

    }

    b[i]='\0';
    a[(l-1)/2]='\0';
    if(strcmp(a,b)==0){
        count++;
        if(count<2){
            printf("no\n");
            return 0;
        }
    }

    b[0]=='\0';
    for(i=(l+3)/2-1,j=0;i<l;i++){
        b[i]=c[j++];
    }
    if(b==strrev(b)){
        count++;
        if(count<3){
            printf("no\n");
            return 0;
        }
    }
    printf("yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'strrev' was not declared in this scope; did you mean 'strsep'?
   15 |     strrev(a);
      |     ^~~~~~
      |     strsep
Language: C++

//============================================================================
// Name        :
// Author      : John Purcell
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#include <functional>

using namespace std;

#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
    double L;
    cin>>L;
    cout << fixed << setprecision(10);

    cout<<L*L*L/27<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:22: error: 'setprecision' was not declared in this scope
   24 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:14:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
   13 | #include <functional>
  +++ |+#include <iomanip>
   14 |
Language: Java

import java.util.Scanner;
class Main {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int n = scanner.nextInt();
    int m = scanner.nextInt();
    
    int a = n!;
    int b = m!;
    
    System.out.println(a+b);
  }
}

Compiler output:
Main.java:8: error: ';' expected
    int a = n!;
             ^
Main.java:9: error: ';' expected
    int b = m!;
             ^
2 errors
Language: C++

#include "../lib/bits/stdc++.h"

using namespace std;

#define SZ(x) (int)(x.size())

using ll = long long;
using P = pair<int, int>;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vll = vector<ll>;
using vvll = vector<vector<ll>>;
const double eps = 1e-10;
const int MOD = 1000000007;
const int INF = 1000000000;
const ll LINF = 1ll<<50;

template<typename T>
void printv(const vector<T>& s) {
  for(int i=0;i<(int)(s.size());++i) {
    cout << s[i];
    if(i == (int)(s.size())-1) cout << endl;
    else cout << " ";
  }
}

int main() {
  cin.tie(0);
  cout << fixed << setprecision(10);

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

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

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

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

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

int main(){
  ll 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:5:3: error: 'll' was not declared in this scope
    5 |   ll n,m;
      |   ^~
a.cc:6:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin>>n>>m;
      |        ^
      |        yn
a.cc:6:11: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |   cin>>n>>m;
      |           ^
      |           tm
Language: C++

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

int main(){
  
  int n, m; cin >> n >> m;
  int count = 0;
  
  while(n>0 || m>0){
    if(n>0){
      count += n-i;
    }
     if(m>0){
      count += m-i;
    }
  }
  cout << count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: 'i' was not declared in this scope
   11 |       count += n-i;
      |                  ^
a.cc:14:18: error: 'i' was not declared in this scope
   14 |       count += m-i;
      |                  ^
Language: C++

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;
 
void Main()
{
	int N;
    int M;
  
  	cin >> N;
    cin >> M;
  
  int S;
  
  S = (N * (N - 1) + M * (M - 1)) / 2
    
    printf("%d", S);
	
	
}
 
int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}
#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;
 
void Main()
{
	int N;
    int M;
  
  	cin >> N;
    cin >> M;
  
  int S;
  
  S = (N * (N - 1) + M * (M - 1)) / 2;
    
    printf("%d", S);
	
	
}
 
int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

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

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;
 
void Main()
{
	int N;
    int M;
  
  	cin >> N;
    cin >> M;
  
  int S;
  
  S = (N * (N - 1) + M * (M - 1)) / 2
    
    printf("%d", S);
	
	
}
 
int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

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

#include"bits/stdc++.h"
#include<boost/multi_array.hpp>
#include<boost/optional.hpp>
#include<boost/range/irange.hpp>
#include<boost/range/algorithm.hpp>
#include<boost/range/adaptors.hpp>
using namespace std;
namespace adaptor = boost::adaptors;

void Main()
{
	int N;
    int M
  
  	cin >> N;
    cin >> M;
  
  int S;
  
  S = (N * (N - 1) + M * (M - 1)) / 2
    
    printf("%d", S);
	
	
}

int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

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

using System;
using System.Linq;

namespace helloworld2
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = Console.ReadLine().Split().Select(x=>int.Parse(x)).ToArray();
            Console.WriteLine(Combination(input[0],2)+Combination(input[1],2));
        }

        static int Combination(int a, int b)
        {
            var s=1;
            var t=1;
            for(var i=1; i<=b; i++)
            {
                s*=i;
                t*=(a-i+1);
            }

            return t/s;
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:8:26: error: 'string' has not been declared
    8 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:8:35: error: expected ',' or '...' before 'args'
    8 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:26:6: error: expected ';' after class definition
   26 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void helloworld2::Program::Main(int*)':
a.cc:10:13: error: 'var' was not declared in this scope
   10 |             var input = Console.ReadLine().Split().Select(x=>int.Parse(x)).ToArray();
      |             ^~~
a.cc:11:13: error: 'Console' was not declared in this scope
   11 |             Console.WriteLine(Combination(input[0],2)+Combination(input[1],2));
      |             ^~~~~~~
a.cc:11:43: error: 'input' was not declared in this scope; did you mean 'int'?
   11 |             Console.WriteLine(Combination(input[0],2)+Combination(input[1],2));
      |                                           ^~~~~
      |                                           int
a.cc: In static member function 'static int helloworld2::Program::Combination(int, int)':
a.cc:16:13: error: 'var' was not declared in this scope
   16 |             var s=1;
      |             ^~~
a.cc:17:17: error: expected ';' before 't'
   17 |             var t=1;
      |                 ^
a.cc:18:21: error: expected ';' before 'i'
   18 |             for(var i=1; i<=b; i++)
      |                     ^
a.cc:18:26: error: 'i' was not declared in this scope
   18 |             for(var i=1; i<=b; i++)
      |                          ^
a.cc:20:17: error: 's' was not declared in this scope
   20 |                 s*=i;
      |                 ^
a.cc:21:17: error: 't' was not declared in this scope
   21 |                 t*=(a-i+1);
      |                 ^
a.cc:24:20: error: 't' was not declared in this scope
   24 |             return t/s;
      |                    ^
a.cc:24:22: error: 's' was not declared in this scope
   24 |             return t/s;
      |                      ^
Language: C++

#include<stdio.h>
 int main()
   {
   int n,m,i,j,sum=0;
   scanf("%d %d",&n,&m);
   if(n>1 || m>1){
     for(i=1,j=1;i<=n,j<=m;i++,j++){
       sum+=((n-i)+(m-j));
       }
     }
   else{
     break;
     }
   printf("%d",sum);
   }


Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: break statement not within loop or switch
   12 |      break;
      |      ^~~~~
Language: Java

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:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String args[]){
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;

public class Atcoder {
    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:3: error: class Atcoder is public, should be declared in a file named Atcoder.java
public class Atcoder {
       ^
1 error
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'N' cannot be used as a function
    6 |   int c=N(N-1)/2;
      |         ~^~~~~
a.cc:7:10: error: 'M' cannot be used as a function
    7 |   int d=M(M-1)/2;
      |         ~^~~~~
Language: C++

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

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

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

/**
int main() {
 #define int long long
  int H,W,K;
  cin >> H >> W >> K;
  vector<vector<int>>S(H,vector<int>(W));
  for(int i=0;i<H;i++){
    for(int j=0;j<W;j++){
      cin >> S[i][j];
    }
  }
 int WAns=0; //number of retsu walls in this gyou setting
int ans; //answer
  ans=W*H;
  int numwall; //number of gyou walls
 int pwall; //0 or 1 whether built a wall in this retsu
 int isError;
 for(int k=0;k<pow(2,H-2);k++){
   isError=0;
   WAns=0;
   numwall=0;
   for(int i=0;i<(H-1);i++){
     if(k&pow(2,i)!=0){
         numwall++;
       }
   }
   cout << "numwall " << numwall << endl;
   vector<int>sum_b(10);
   int block=0; //current block (gyou)
   for(int j=0;j<W;j++){
     //cout << "w";
     for(int i=0;i<H;i++){
       sum_b[block]+=S[i][j];
       if(sum_b[block]>K){
         if(pwall<j){
           j--;
           WAns++;
           pwall=j;
           sum_b={0,0,0,0,0,0,0,0,0,0};
           break;
         }else{
           isError=1;
           break;
         }
       }
       if(k&pow(2,i)!=0){
         block++;
       }
     }
     if(isError==1){
       break;
     }
     
   }
   cout << "w";
   if(ans>(WAns+numwall)&&isError==0){
     ans=(WAns+numwall);
   }
  }
  cout << ans << endl;
}**/



Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: Java

#include <iostream>
using namespace std;

int main(){

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

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:7: error: not a statement
    cin >>n>>m;
           ^
Main.java:8: error: not a statement
    cout<<(n+m)*(n+m-1)/2-n*m<<endl;
                             ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

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

typedef unsigned long long  ULL;
typedef long long LL;

#define PB push_back
#define MP make_pair
#define RESET(a, b) memset(a, b, sizeof(a))
#define FOR(i,a,b) for(int i=a; i<=b; i++)
#define F first 
#define S second
#define end "\n"
 
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    
    int n,m;
  int cin>>n>>m;
  int sum1= n*(n-1)/2;
  int sum2= m*(m-1)/2;
  
  cout<<sum1+sum2;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:10: error: expected initializer before '>>' token
   21 |   int cin>>n>>m;
      |          ^~
Language: C++

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

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

#include <iostream>
#include <string>
#include <c++/algorithm>

using namespace std;

int main() {

    int N, M;
    cin >> N;
    cin >> M;

    int count = 0;
    if(N != 0)count += N*(N-1)/2;
    if(M != 0)count += M*(M-1)/2;
    cout << count << endl;
    return 0;
}

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

#include <iostream>
using namespace std;

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

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

#include <iostream>
#include <string>
#include <c++/algorithm>

using namespace std;

int main() {

    int N, M;
    cin >> N, M;
    
    int count =0;
    if(N != 0)count += N*(N-1)/2;
    if(M != 0)count += M*(M-1)/2;
    cout << count << endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vi = vector<int>;
using vvi =vector<vi>;

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:16: error: found ':' in nested-name-specifier, expected '::'
    9 |   cin >> N >> M:
      |                ^
      |                ::
a.cc:9:15: error: 'M' is not a class, namespace, or enumeration
    9 |   cin >> N >> M:
      |               ^
Language: C++

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

int mypick(int N){
  return N(N-1)/2;
}

int main{
  int N;
  int M;
  cin >> N >> M;
  int ans;
  ans = mypick(N) * mypick(M);
}


Compiler output:
a.cc:2:1: error: 'usinh' does not name a type
    2 | usinh namespace std;
      | ^~~~~
a.cc: In function 'int mypick(int)':
a.cc:5:11: error: 'N' cannot be used as a function
    5 |   return N(N-1)/2;
      |          ~^~~~~
a.cc: At global scope:
a.cc:8:5: error: cannot declare '::main' to be a global variable
    8 | int main{
      |     ^~~~
a.cc:9:3: error: expected primary-expression before 'int'
    9 |   int N;
      |   ^~~
a.cc:9:3: error: expected '}' before 'int'
a.cc:8:9: note: to match this '{'
    8 | int main{
      |         ^
a.cc:11:3: error: 'cin' does not name a type
   11 |   cin >> N >> M;
      |   ^~~
a.cc:13:3: error: 'ans' does not name a type
   13 |   ans = mypick(N) * mypick(M);
      |   ^~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'cout'
    9 |   ans = (N-1)*N*(M-1)*M/4
      |                          ^
      |                          ;
   10 |     cout << ans;
      |     ~~~~
Language: C++

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

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

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

#define INF 2000000001
#define ll long long int
 
#include<bits/stdc++.h>
using namespace std;
 
void input(ll a[], ll n)
{
    for(ll i = 0; i < n; i++)
        cin >> a[i];
}
 
void print(ll a[], ll n)
{
    for(ll i = 0; i < n; i++)
        cout << a[i] << ' ';
    cout << '\n';
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:42: error: expected ';' before 'return'
   27 |     cout << (M*(M - 1))/2 + (N*(N - 1))/2
      |                                          ^
      |                                          ;
   28 | 
   29 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>

#define all(x) x.begin(), x.end()

using namespace std;

typedef long long ll;
typedef vector<ll> dlist;
typedef vector<dlist> matrix;

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

    int t, n, m;
    cin >> n >> m;

    int ans = 

    cout << ((n * (n + 1)) / 2)*(n > 1)  +(m > 1)*(m * (m + 1))/2 << "\n";


    return 0;
}//RUL0


Compiler output:
a.cc: In function 'int main()':
a.cc:20:67: error: cannot convert 'std::basic_ostream<char>' to 'int' in initialization
   20 |     cout << ((n * (n + 1)) / 2)*(n > 1)  +(m > 1)*(m * (m + 1))/2 << "\n";
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
      |                                                                   |
      |                                                                   std::basic_ostream<char>
Language: C++

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

using namespace std;
typedef long long ll;

int main()
{
 ll N;
 cin>>N;
 ll d[N];
 for(int i=0;i<N;++i)cin>>d[i];

int num[N];

 for(int i = 0;i<N;++i)
{
  num[i] = 0;
}

for(int i = 0;i<N;++i)
{
 num[d[i]]++;
}

ll ans = 0;

for(int i = 0; i < N;i++){
    ans+=num[i]*(num[i]-1)/2;
}

cout<<endl;

for(int i = 0; i < N;i++){
    if(num[d[i]]>0){
    ans-=(num[d[i]]-1);
    cout<<ans<<endl;
    ans+=(num[d[i]]-1);
    }
}


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

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

Compiler output:
a.cc: In function 'int func(int)':
a.cc:3:6: error: expected '(' before 'a'
    3 |   if a
      |      ^
      |      (
Language: C

#include<stdio.h>
int main() {
	int N, M;
	scanf_s("%d",&N);
	scanf_s("%d", &M);
	printf("%d\n", N*(N-1)/2 + M*(M-1)/2);
}

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

#include <iostream>
#include <cstdlib>
#include <vector>
#include <algorithm>

int conbination(const int& i, const int& j);

int main()
{
    long long n, m;
    std::cin >> n >> m;

    std::cout << conbination(n, 2) + conbination(m, 2);

    return EXIT_SUCCESS;
}

int conbination(const long& n, const long& r)
{
    int num(1);
    int den(1);

    for(int i= 0; i < n; i++)
    {
        num *= n - i;
        den *= r - i;
    }

    if(num <= 0) num = 0;
    if(den <= 0) den = 1;

    return num / den;
}

Compiler output:
/usr/bin/ld: /tmp/cc6YckCN.o: in function `main':
a.cc:(.text+0x4e): undefined reference to `conbination(int const&, int const&)'
/usr/bin/ld: a.cc:(.text+0x71): undefined reference to `conbination(int const&, int const&)'
collect2: error: ld returned 1 exit status
Language: C

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

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

import java.io.InputStream;
import java.util.*;


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

        int n = scanner.nextInt();
        int m = scanner.nextInt();

        int nCoeff = 0;
        int mCoeff = 0;

        if (n > 1) {
            nCoeff = binomialCoefficient(n, 2);
        }

        if (m > 1) {
            mCoeff = binomialCoefficient(m, 2);
        }

        System.out.println(nCoeff + mCoeff);
    }

    private static int binomialCoefficient(int n, int k) {
        int coefficient = 1;

        if (k > n - k) {
            k = n - k;
        }

        for (int i = 0; i < k; ++i) {
            coefficient *= (n - i);
            coefficient /= (i + 1);
        }

        return coefficient;
    }
}

Compiler output:
Main.java:5: error: class CFMain is public, should be declared in a file named CFMain.java
public class CFMain {
       ^
1 error
Language: Java

import java.io.InputStream;
import java.util.*;


public class CFMain {
    public static void main(String[] args) {
        InputReader in = new InputReader(System.in);

        int n = in.readInt();
        int m = in.readInt();

        System.out.println(binomialCoefficient(n, 2) + binomialCoefficient(m, 2));
    }

    private static int binomialCoefficient(int n, int k) {
        int coefficient = 1;

        if (k > n - k) {
            k = n - k;
        }

        for (int i = 0; i < k; ++i) {
            coefficient *= (n - i);
            coefficient /= (i + 1);
        }

        return coefficient;
    }
}


class InputReader {
    private Scanner scanner;

    InputReader(InputStream inputStream) {
        this.scanner = new Scanner(inputStream);
    }

    int readInt() {
        return scanner.nextInt();
    }

    long readLong() {
        return scanner.nextLong();
    }

    String readLine() {
        return scanner.next(); // fixme: has problems with line endings.
    }

    int[] readIntArray(int arrayLength) {
        int[] array = new int[arrayLength];
        for (int i = 0; i < arrayLength; i++) {
            array[i] = scanner.nextInt();
        }

        return array;
    }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int L;
  cin>>L;
  cout<<(L/3.0000000000)*(L/3.0000000000)*(L/3.0000000000)
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:59: error: expected ';' before '}' token
    6 |   cout<<(L/3.0000000000)*(L/3.0000000000)*(L/3.0000000000)
      |                                                           ^
      |                                                           ;
    7 | }
      | ~
Language: C++

#include<iostream>



void calc(char n, char m, char *s)
{
 int i = 0;
  for(i = 0; i < n; i++)
  {
    *s += i;
  }
  for(i = 0; i < m; i++)
  {
    *s += i;
  }
}

int main(void)
{
  char n = 0;
  char m = 0;
  char s = 0;
  cin >> n >> m;
  calc(n, m, &s);
  cout << s;
  return 0;
}
  

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

#include<iostream>



void calc(char n, char m, char *s)
{
 int i = 0;
  for(i = 0; i < n; i++)
  {
    *s += i;
  }
  for(i = 0; i < m; i++)
  {
    *s += i;
  }
}

int main(void)
{
  char n = 0;
  char m = 0;
  char s = 0;
  cin >> n >> m;
  calc(n, m, &s);
  cout << s;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   23 |   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:25:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |   cout << s;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:25:13: error: expected '}' at end of input
   25 |   cout << s;
      |             ^
a.cc:19:1: note: to match this '{'
   19 | {
      | ^
Language: C++

{
"latex-workshop.latex.tools": [
  {
      "name": "latexmk",
      "command": "wsl.exe",
      "args": [
          "/mnt/c/latex-tools.sh",
          "latexmk",
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "-pdf",
          "%DOC%"
      ]
  },
  {
      "name": "pdflatex",
      "command": "wsl.exe",
      "args": [
          "/mnt/c/latex-tools.sh",
          "pdflatex",
          "-synctex=1",
          "-interaction=nonstopmode",
          "-file-line-error",
          "%DOC%"
      ]
      },
  {
      "name": "bibtex",
      "command": "wsl.exe",
      "args": [
          "/mnt/c/latex-tools.sh",
          "bibtex",
          "%DOCFILE%"
      ]
  },
  {
      "name":"ptex2pdf",
      "command": "wsl.exe",
      "args": [
          "/mnt/c/latex-tools.sh",
          "ptex2pdf",
          "-l",
          "-ot",
          "-kanji=utf8 -synctex=1",
          "-interaction=nonstopmode",
          "%DOC%"
      ]
  },
  {
      "name":"ptex2pdf (uplatex)",
      "command": "wsl.exe",
      "args": [
          "/mnt/c/latex-tools.sh",
          "ptex2pdf",
          "-l",
          "-u",
          "-ot",
          "-kanji=utf8 -synctex=1",
          "-interaction=nonstopmode",
          "%DOC%"
      ]
  },
  {
      "name": "pbibtex",
      "command": "wsl.exe",
      "args": [
          "/mnt/c/latex-tools.sh",
          "pbibtex",
          "-kanji=utf8",
          "%DOCFILE%"
      ]
  }
],

//レシピの設定

"latex-workshop.latex.recipes": [
  {
      "name": "ptex2pdf",
      "tools": [
          "ptex2pdf"
      ]
  },
  {
      "name": "latexmk",
      "tools": [
          "latexmk"
      ]
  },
  {
      "name": "pdflatex",
      "tools": [
          "pdflatex",
      ]
  },
  {
      "name": "pdflatex -> bibtex -> pdflatex",
      "tools": [
          "pdflatex",
          "bibtex",
          "pdflatex",
      ]
  },
  {
      "name": "ptex2pdf -> pbibtex -> ptex2pdf",
      "tools": [
          "ptex2pdf",
          "pbibtex",
          "ptex2pdf",
      ]
  },
  {
      "name": "ptex2pdf (uplatex)",
      "tools": [
          "ptex2pdf (uplatex)",
      ]
  },
  {
      "name": "ptex2pdf (uplatex) -> pbibtex -> ptex2pdf (uplatex)",
      "tools": [
          "ptex2pdf (uplatex)",
          "pbibtex",
          "ptex2pdf (uplatex)",
      ]
  },
],
    "latex-workshop.view.pdf.viewer": "tab",
    "latex-workshop.chktex.enabled": false,
    "files.autoSave": "afterDelay",

    "files.eol": "\n",

    "terminal.integrated.shell.windows": "C:\\Windows\\System32\\wsl.exe",
    "window.zoomLevel": 1,
    "editor.renderControlCharacters": false,
    "files.autoGuessEncoding": true,
    "git.path": "C:\\wslgit.exe",
    "git.autofetch": true,
    "editor.minimap.enabled": false
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '{' token
    1 | {
      | ^
Language: C++

#include <bits/stdc++.h>


using namespace std;

int fib(int n){
    int s = 1;
    for (int i=1; i<=n; i++)
      s *= i;
  	return s;
}

int main()
{
    int N, M;
  	cint>>N>>M;
  
  	int sum = fib(n)/2 + fib(M);
  	cout<<sum;
  
  
 	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'cint' was not declared in this scope; did you mean 'uint'?
   16 |         cint>>N>>M;
      |         ^~~~
      |         uint
a.cc:18:23: error: 'n' was not declared in this scope
   18 |         int sum = fib(n)/2 + fib(M);
      |                       ^
Language: C++

#include <bits/stdc++,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/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 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:7:42: error: expected ';' before '}' token
    7 |     cout << n*(n-1)/2 + m*(m-1)/2 << endl
      |                                          ^
      |                                          ;
    8 | }
      | ~
Language: C++

#include<bits/stdc++.h>

int main() {
	int n, m;
   	cin>>n>>m;
  	int s1 = n*(n-1) / 2;
  	int s2 = m*(m-1) / 2;
  	return s1+s2;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>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
      |                  ^~~