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

#include <iostream>
//#include <string>
#include <algorithm>
using namespace std;
typedef unsigned int u_i;

int main(){

 	int n,count=0;
  	cin >> n;
  	if(n<3){
      cout << count << endl;
      return 0;
    }
  	u_i l[n],mx;
  	for(int i=0; i<n; ++i){
      cin >> l[i];
    }
	for(int i=0; i<n-2; ++i){
      for(int j=i+1; j<n-1; ++j){
        for(int k=j+1; k<n; ++k){
          mx = max(l[i],l[j],l[k]);
          if((mx<l[i]+l[j]+l[k]-mx) && (l[i]!=l[j] && l[i]!=l[k] && l[k]!=l[j]) ){
            count++;
          }
        }
      }
    }
  	
  
  	cout << count << endl;
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = unsigned int; _Compare = unsigned int]':
a.cc:22:19:   required from here
   22 |           mx = max(l[i],l[j],l[k]);
      |                ~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
Language: C++

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

int main(){
  int n;
  cin >> n;
  vector<int> s(n);
  for(int i=0;i<n;i++){
    cin >> s[i];
  }
  int count = 0;
  if(s.size()<3){
    cout << "0" << endl;
  }else{  
    for(int i=0;i<n;i++){
      for(int j=i+1;j<n;j++){
        for(int k=j+1;k<n;k++){
          if(s[i]+s[j]>s[k] && s[j]+s[k]>s[i] && s[k]+s[i]>s[j]){
            count++;
          }
        }
      }
    }
    cout << count << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:26:4: error: expected '}' at end of input
   26 |   }
      |    ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: Java

import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextInt();
    ArrayList<Long> array = new ArrayList<Long>();
    for(int i = 0;i < num;i++){
      array.add(sc.nextLong());
    }
    long count = 0;
    for(int i = 0;i < num - 2;i++){
      for(int j = i + 1;j < num - 1;j++){
        for(int k = j + 1;k < num;k++){
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
            count++;
          }
        }
      }
    }
    System.out.println(count);
  }
}

Compiler output:
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                   ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                              ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                         ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                       ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                  ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                             ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                                           ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                                                      ^
Main.java:15: error: array required, but ArrayList<Long> found
          if((array[i] < array[j] + array[k]) || (array[j] < array[i] + array[k]) || (array[k] < array[i] + array[j])){
                                                                                                                 ^
9 errors
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Long list[] = new Long[n];
		for(int i=0;i<n;i++) {
			list[i] = sc.nextLong();
		}
		int count = 0;
		for(int i=0;i<n;i++) {
			for(int j=i+1;j<n;j++) {
				for(int k=j+1;k<n;k++) {
					if(list[i] != list[j] && list [j] != list[k] && list[k] != list [i]) {
						if(list[i]  < list[j] + list[k] && list[j] < list[i] + list[k] && list[k]<list[i] + list[j]) {
							count++;
						}
				}
			}
		}
		System.out.println(count);
	}

}


Compiler output:
Main.java:27: error: reached end of file while parsing
}
 ^
1 error
Language: Java


import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Long list[] = new Long[n];
		for(int i=0;i<n;i++) {
			list[i] = sc.nextLong();
		}
		int count = 0;
		for(int i=0;i<n;i++) {
			for(int j=i+1;j<n;j++) {
				for(int k=j+1;k<n;k++) {
					if(list[i] != list[j] && list [j] != list[k] && list[k] != list [i]) {
						if(list[i]  < list[j] + list[k] && list[j] < list[i] + list[k] && list[k]<list[i] + list[j]) {
							count++;
						}
				}
			}
		}
		System.out.println(count);
	}

}


Compiler output:
Main.java:28: error: reached end of file while parsing
}
 ^
1 error
Language: Java

package abc175;

import java.util.Scanner;

public class ABC175B {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		Long list[] = new Long[n];
		for(int i=0;i<n;i++) {
			list[i] = sc.nextLong();
		}
		int count = 0;
		for(int i=0;i<n;i++) {
			for(int j=i+1;j<n;j++) {
				for(int k=j+1;k<n;k++) {
					if((list[i] != list[j] && list [j] != list[k] && list[k] != list [i]) && (list[i]  < list[j] + list[k] && list[j] < list[i] + list[k] && list[k]<list[i] + list[j])) { 
						count++;
					}
				}
			}
		}
		System.out.println(count);
	}

}


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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    long[] L = new long[];
    for(int i=0;i<N;i++){
      L[i] = scan.nextLong();
    }
    int ans=0;
    for(int i=0;i<N;i++){
      for(int j=0;j<N;j++){
        if(i==j)break;
        for(int k=0;k<N;k++){
          if(j==k||k==i)break;
          if(L[i]>L[j]+L[k])ans++;
        }
      }
    }
    System.out.println(ans/2);

Compiler output:
Main.java:6: error: array dimension missing
    long[] L = new long[];
                         ^
Main.java:20: error: reached end of file while parsing
    System.out.println(ans/2);
                              ^
2 errors
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#define rep(i,n) for(int i = 0; i , (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
    if (n == 0) {
        return 0;
    }

    int s = sum(n - 1);
    return s + n;
}
int main() {
    int N,count=0;
    cin >> N;
    vector<int>A(N);
    for (int i = 0;i < N;i++) {
        cin >> A(i);
    }
    for (int i = 0;i < N;i++) {
        for (int j = 0;j < N;j++) {
            for (int k = 0;k < N;k++) {
                if (i == j || j == k || k == i) {
                    continue;
                }
                if (i + j > k && j + k > i && k + i > j) {
                    count++;
                }
            }
        }
    }
    cout << count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: no match for call to '(std::vector<int>) (int&)'
   20 |         cin >> A(i);
      |                ~^~~
Language: C

#include<stdio.h>
int buble(int a,int b[200]){
  int j,i,tmp;
  for(i=0;i<a;i++){
    for(j=0;j<a;j++){
      if(b[i]>b[j]){
        tmp=b[i];
        b[i]=b[j];
        b[j]=tmp;
      }
    }
  }
  return b;
}

int main(){
  int n,a,b,c,k,l,d,e,f,p,count=0;
  scanf("%d",&n);
  for(p=0;p<=n;p++){
    scanf("%d,&l[p]");
  }
  l[200]=buble(n,l);
  p=(n*n*n-3*n*n+2*n)/6;
  for(d=0;d<n;d++){
    for(e=d+1;e<n;e++){
      for(f=e+1;f<n;f++){
        if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
          count++;
        }
      }
    }
  }
  count=p-count;
  printf("%d",count);
  return 0;
}


Compiler output:
main.c: In function 'buble':
main.c:13:10: error: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   13 |   return b;
      |          ^
main.c: In function 'main':
main.c:22:4: error: subscripted value is neither array nor pointer nor vector
   22 |   l[200]=buble(n,l);
      |    ^
main.c:22:18: error: passing argument 2 of 'buble' makes pointer from integer without a cast [-Wint-conversion]
   22 |   l[200]=buble(n,l);
      |                  ^
      |                  |
      |                  int
main.c:2:21: note: expected 'int *' but argument is of type 'int'
    2 | int buble(int a,int b[200]){
      |                 ~~~~^~~~~~
main.c:27:13: error: subscripted value is neither array nor pointer nor vector
   27 |         if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
      |             ^
main.c:27:19: error: subscripted value is neither array nor pointer nor vector
   27 |         if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
      |                   ^
main.c:27:24: error: subscripted value is neither array nor pointer nor vector
   27 |         if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
      |                        ^
main.c:27:30: error: subscripted value is neither array nor pointer nor vector
   27 |         if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
      |                              ^
main.c:27:36: error: subscripted value is neither array nor pointer nor vector
   27 |         if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
      |                                    ^
main.c:27:42: error: subscripted value is neither array nor pointer nor vector
   27 |         if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
      |                                          ^
main.c:27:48: error: subscripted value is neither array nor pointer nor vector
   27 |         if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
      |                                                ^
Language: C

#include<stdio.h>
int buble(int a,int b[200]){
  int j,i,tmp;
  for(i=0;i<a;i++){
    for(j=0;j<a;j++){
      if(b[i]>b[j]){
        tmp=b[i];
        b[i]=b[j];
        b[j]=tmp;
      }
    }
  }
  return b;
}

int main(){
  int n,a,b,c,k,l;
  scanf("%d",&n);
  for(p=0;p<=n;p++){
    scanf("%d,&l[p]");
  }
  l[200]=buble(n,l);
  p=(n*n*n-3*n*n+2*n)/6;
  for(d=0;d<n;d++){
    for(e=d+1;e<n;e++){
      for(f=e+1;f<n;f++){
        if(l[d]>=l[e]+l[f]||l[d]==l[e]||l[e]==l[f]){
          count++;
        }
      }
    }
  }
  count=p-count;
  printf("%d",count);
  return 0;
}

Compiler output:
main.c: In function 'buble':
main.c:13:10: error: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   13 |   return b;
      |          ^
main.c: In function 'main':
main.c:19:7: error: 'p' undeclared (first use in this function)
   19 |   for(p=0;p<=n;p++){
      |       ^
main.c:19:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:4: error: subscripted value is neither array nor pointer nor vector
   22 |   l[200]=buble(n,l);
      |    ^
main.c:22:18: error: passing argument 2 of 'buble' makes pointer from integer without a cast [-Wint-conversion]
   22 |   l[200]=buble(n,l);
      |                  ^
      |                  |
      |                  int
main.c:2:21: note: expected 'int *' but argument is of type 'int'
    2 | int buble(int a,int b[200]){
      |                 ~~~~^~~~~~
main.c:24:7: error: 'd' undeclared (first use in this function)
   24 |   for(d=0;d<n;d++){
      |       ^
main.c:25:9: error: 'e' undeclared (first use in this function)
   25 |     for(e=d+1;e<n;e++){
      |         ^
main.c:26:11: error: 'f' undeclared (first use in this function)
   26 |       for(f=e+1;f<n;f++){
      |           ^
main.c:28:11: error: 'count' undeclared (first use in this function)
   28 |           count++;
      |           ^~~~~
Language: C

#include<stdio.h>
int buble(int a, int b[200]){
   int j,i,tmp;
  for(i=0;i<a;i++){
 	 for(j=0;j<a;j++){
   		 if(b[i]>b[j]){
  	   	   tmp=b[i];
   		   b[i]=b[j];
   		   b[j]=tmp;    
		  }
 	 }
  }
   return b;

Compiler output:
main.c: In function 'buble':
main.c:13:11: error: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   13 |    return b;
      |           ^
main.c:13:4: error: expected declaration or statement at end of input
   13 |    return b;
      |    ^~~~~~
Language: C

#include<stdio.h>
int main(){
  int a,b,c,n,i,j,k,l;
  int p[150]={};
  for(i=0;i<150;i++){
    scanf("%d",p[i]);
  }
  for(i=0;i<150;i++){
    if(p[i]>p[i+1]){
      a=p[i];
      p[i]=p[i+1];
      p[i+1]=a;
    }
  }
  for(i=0;i<150;i++){
    if(p[i+2]>p[i+1]+p[i]){
      counter=counter+1;
      


Compiler output:
main.c: In function 'main':
main.c:17:7: error: 'counter' undeclared (first use in this function)
   17 |       counter=counter+1;
      |       ^~~~~~~
main.c:17:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:7: error: expected declaration or statement at end of input
main.c:17:7: error: expected declaration or statement at end of input
main.c:17:7: error: expected declaration or statement at end of input
Language: C++

#include<iostream>
#include<vector>
#include<cmath>
using namespace std;
 
#define rep(i,N) for(int i;i<(int)N;i++)
bool joken(int a,int b,int c);
 
int main()
{
  int N;
  cin>>N;
  vector<int> L(N,0);
  int number=0;	//条件に合致する組み合わせの数
  
  rep(ni,N)
  {
    cin>>L(ni);
  }
  
  if(N<3)
  {
    cout<<0<<endl;
    return 0;
  }
  
  rep(ni,N-2)
  {
    for(int nj=ni+1;nj<N-1;nj++)
    {
      for(int nk=nj+1;nk<N;nk++)
      {
        if(joken(L(ni),L(nj),L(nk))&&
            joken(L(nj),L(nk),L(ni))&&
             joken(L(nk),L(ni),L(nj)))
             number++;
      }
    }
  }
  cout<<number<<endl;
  return 0;
}
 
bool joken(int a,int b,int c)
{
  if((a+b)>c)
    return true;
  else
    return false;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: no match for call to '(std::vector<int>) (int&)'
   18 |     cin>>L(ni);
      |          ~^~~~
a.cc:33:19: error: no match for call to '(std::vector<int>) (int&)'
   33 |         if(joken(L(ni),L(nj),L(nk))&&
      |                  ~^~~~
a.cc:33:25: error: no match for call to '(std::vector<int>) (int&)'
   33 |         if(joken(L(ni),L(nj),L(nk))&&
      |                        ~^~~~
a.cc:33:31: error: no match for call to '(std::vector<int>) (int&)'
   33 |         if(joken(L(ni),L(nj),L(nk))&&
      |                              ~^~~~
a.cc:34:20: error: no match for call to '(std::vector<int>) (int&)'
   34 |             joken(L(nj),L(nk),L(ni))&&
      |                   ~^~~~
a.cc:34:26: error: no match for call to '(std::vector<int>) (int&)'
   34 |             joken(L(nj),L(nk),L(ni))&&
      |                         ~^~~~
a.cc:34:32: error: no match for call to '(std::vector<int>) (int&)'
   34 |             joken(L(nj),L(nk),L(ni))&&
      |                               ~^~~~
a.cc:35:21: error: no match for call to '(std::vector<int>) (int&)'
   35 |              joken(L(nk),L(ni),L(nj)))
      |                    ~^~~~
a.cc:35:27: error: no match for call to '(std::vector<int>) (int&)'
   35 |              joken(L(nk),L(ni),L(nj)))
      |                          ~^~~~
a.cc:35:33: error: no match for call to '(std::vector<int>) (int&)'
   35 |              joken(L(nk),L(ni),L(nj)))
      |                                ~^~~~
Language: C++

#include<iostream>
#include<vector>
#include<cmath>
using namespace std;
 
#define rep(i,N) for(int i;i<(int)N;i++)
bool joken(int a,int b,int c);
 
int main()
{
  int N;
  cin>>N;
  vector<int> L(N,0);
  int number=0;	//条件に合致する組み合わせの数
  
  rep(ni,N)
  {
    cin>>L(ni);
  }
  
  if(N<3)
  {
    cout<<0<<endl;
    return 0;
  }
  
  rep(ni,N-2)
  {
    for(int nj=ni+1;nj<N-1;nj++)
    {
      for(int nk=nj+1;nk<N;nk++)
      {
        if((joken(L(ni),L(nj),L(nk))&&
            (joken(L(nj),L(nk),L(ni))&&
             (joken(L(nk),L(ni),L(nj)))
             number++;
      }
    }
  }
  cout<<number<<endl;
  return 0;
}
 
bool joken(int a,int b,int c)
{
  if((a+b)>c)
    return true;
  else
    return false;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: no match for call to '(std::vector<int>) (int&)'
   18 |     cin>>L(ni);
      |          ~^~~~
a.cc:33:20: error: no match for call to '(std::vector<int>) (int&)'
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |                   ~^~~~
a.cc:33:26: error: no match for call to '(std::vector<int>) (int&)'
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |                         ~^~~~
a.cc:33:32: error: no match for call to '(std::vector<int>) (int&)'
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |                               ~^~~~
a.cc:34:21: error: no match for call to '(std::vector<int>) (int&)'
   34 |             (joken(L(nj),L(nk),L(ni))&&
      |                    ~^~~~
a.cc:34:27: error: no match for call to '(std::vector<int>) (int&)'
   34 |             (joken(L(nj),L(nk),L(ni))&&
      |                          ~^~~~
a.cc:34:33: error: no match for call to '(std::vector<int>) (int&)'
   34 |             (joken(L(nj),L(nk),L(ni))&&
      |                                ~^~~~
a.cc:35:22: error: no match for call to '(std::vector<int>) (int&)'
   35 |              (joken(L(nk),L(ni),L(nj)))
      |                     ~^~~~
a.cc:35:28: error: no match for call to '(std::vector<int>) (int&)'
   35 |              (joken(L(nk),L(ni),L(nj)))
      |                           ~^~~~
a.cc:35:34: error: no match for call to '(std::vector<int>) (int&)'
   35 |              (joken(L(nk),L(ni),L(nj)))
      |                                 ~^~~~
a.cc:35:40: error: expected ')' before 'number'
   35 |              (joken(L(nk),L(ni),L(nj)))
      |                                        ^
      |                                        )
   36 |              number++;
      |              ~~~~~~                     
a.cc:34:13: note: to match this '('
   34 |             (joken(L(nj),L(nk),L(ni))&&
      |             ^
a.cc:36:22: error: expected ')' before ';' token
   36 |              number++;
      |                      ^
      |                      )
a.cc:33:12: note: to match this '('
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |            ^
a.cc:36:22: error: expected ')' before ';' token
   36 |              number++;
      |                      ^
      |                      )
a.cc:33:11: note: to match this '('
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |           ^
Language: C++

#include<iostream>
#include<vector>
#include<cmath>
using namespace std;
 
#define rep(i,N) for(int i;i<(int)N;i++)
bool joken(int a,int b,int c);
 
int main()
{
  int N;
  cin>>N;
  vector<int> L(N,0);
  int number=0;	//条件に合致する組み合わせの数
  
  rep(ni,N)
  {
    cin>>L(ni);
  }
  
  if(N<3)
  {
    cout<<0<<endl;
    return 0;
  }
  
  rep(ni,N-2)
  {
    for(nj=ni+1,nj<N-1;nj++)
    {
      for(nk=nj+1,nk<N;nk++)
      {
        if((joken(L(ni),L(nj),L(nk))&&
            (joken(L(nj),L(nk),L(ni))&&
             (joken(L(nk),L(ni),L(nj)))
             number++;
      }
    }
  }
  return 0;
}
 
bool joken(int a,int b,int c)
{
  if((a+b)>c)
    return true;
  else
    false;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: no match for call to '(std::vector<int>) (int&)'
   18 |     cin>>L(ni);
      |          ~^~~~
a.cc:29:9: error: 'nj' was not declared in this scope; did you mean 'ni'?
   29 |     for(nj=ni+1,nj<N-1;nj++)
      |         ^~
      |         ni
a.cc:29:28: error: expected ';' before ')' token
   29 |     for(nj=ni+1,nj<N-1;nj++)
      |                            ^
      |                            ;
a.cc:31:11: error: 'nk' was not declared in this scope; did you mean 'ni'?
   31 |       for(nk=nj+1,nk<N;nk++)
      |           ^~
      |           ni
a.cc:31:28: error: expected ';' before ')' token
   31 |       for(nk=nj+1,nk<N;nk++)
      |                            ^
      |                            ;
a.cc:33:20: error: no match for call to '(std::vector<int>) (int&)'
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |                   ~^~~~
a.cc:34:33: error: no match for call to '(std::vector<int>) (int&)'
   34 |             (joken(L(nj),L(nk),L(ni))&&
      |                                ~^~~~
a.cc:35:28: error: no match for call to '(std::vector<int>) (int&)'
   35 |              (joken(L(nk),L(ni),L(nj)))
      |                           ~^~~~
a.cc:35:40: error: expected ')' before 'number'
   35 |              (joken(L(nk),L(ni),L(nj)))
      |                                        ^
      |                                        )
   36 |              number++;
      |              ~~~~~~                     
a.cc:34:13: note: to match this '('
   34 |             (joken(L(nj),L(nk),L(ni))&&
      |             ^
a.cc:36:22: error: expected ')' before ';' token
   36 |              number++;
      |                      ^
      |                      )
a.cc:33:12: note: to match this '('
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |            ^
a.cc:36:22: error: expected ')' before ';' token
   36 |              number++;
      |                      ^
      |                      )
a.cc:33:11: note: to match this '('
   33 |         if((joken(L(ni),L(nj),L(nk))&&
      |           ^
a.cc: In function 'bool joken(int, int, int)':
a.cc:49:1: warning: control reaches end of non-void function [-Wreturn-type]
   49 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int ans=0;
  int N;
  cin >> N;
  int L[N];
  for(i=0;i<N;i++){
    cin >> L[i];
  }
  sort(L.begin(),L.end());
  for(i=0;i<N;i++){
    for(j=i+1;j<N;j++){
      for(k=j+1;k<N;k++){
        if(L[i]!=L[j] && L[j]!=L[k] && L[k]!=L[i] && L[i]+L[j]>L[K]){
          ans++;
        }
      }
    }
  }
cout << ans << endl;
}
          
                   

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0;i<N;i++){
      |       ^
a.cc:11:10: error: request for member 'begin' in 'L', which is of non-class type 'int [N]'
   11 |   sort(L.begin(),L.end());
      |          ^~~~~
a.cc:11:20: error: request for member 'end' in 'L', which is of non-class type 'int [N]'
   11 |   sort(L.begin(),L.end());
      |                    ^~~
a.cc:11:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   11 |   sort(L.begin(),L.end());
      |   ^~~~
      |   short
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0;i<N;i++){
      |       ^
a.cc:13:9: error: 'j' was not declared in this scope
   13 |     for(j=i+1;j<N;j++){
      |         ^
a.cc:14:11: error: 'k' was not declared in this scope
   14 |       for(k=j+1;k<N;k++){
      |           ^
a.cc:15:66: error: 'K' was not declared in this scope
   15 |         if(L[i]!=L[j] && L[j]!=L[k] && L[k]!=L[i] && L[i]+L[j]>L[K]){
      |                                                                  ^
Language: C++

#include <iostream>
#include <vector>
using namespace std;
#define rep(i, n) for(int i = 0; i < (n); i++)

int main(){
    int  n;
    int ans = 0;
    cin >> n;
    vector<int> a(n);
    rep(i, n) cin >> a[i];

    rep(i, n)rep(j, n)rep(k, n){
        if(i < j && j < k){
            if(a[i] == a[j]) continue;
            if(a[i] == a[k]) continue;
            if(a[k] == a[j]) continue;
            if((long long)a[i]+a[j]+a[k] <= max({a[i], a[j], a[k]}) * 2) continue;
            ans++;
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:48: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
   18 |             if((long long)a[i]+a[j]+a[k] <= max({a[i], a[j], a[k]}) * 2) continue;
      |                                             ~~~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
const int maxn=1e6+10;
#define p 1000000007
int main(){
	fast;
	ll n,t,cnt=0; cin>>n;
	vector<ll> a(n);
	for(auto &it:a)cin>>it;
	sort(arr.begin(), arr.end());
	for(auto i=0;i<n;++i){
		for(auto j=0;j<i;++j){
			for(auto k=0;k<j;++k){
				if(a[j]+a[k]>a[i] && a[i]!=a[j] && a[j]!=a[k]){
					++cnt;
				}
			}
		}
	}
	cout<<cnt<<'\n';
	return 0;
}
//prime func
//subset production
//factorization
//modpow
//modinv ( a^(p-2)=a^(-1) (mod p) )
//sieve
//ncr
//euler totien func (co prime divisiors upto n)
//matrix exponentation
//dsu
//Trees
//Graphs(dfs,bfs,shortes path etc.)
//DP-Recursion

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'arr' was not declared in this scope
   12 |         sort(arr.begin(), arr.end());
      |              ^~~
Language: C++

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

int main(){
int N;
  cin >> N;
 int d[110];
 int count;
 for(int i=0;i<N;i++){
    cin >> x[i];    
 }
  
if(N>=3){
  int count =0;
for(int i=0;i<N;i++){
for(int j=i+1;j<N;j++){ 
for(int k=j+1;k<N;k++) {
  if(x[i]>abs(x[j]-x[k]) && x[i]<x[j]+x[k]) count++;
  }  
  }
}
  cout << count << endl;
}
  else {
    cout << 0 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
   10 |     cin >> x[i];
      |            ^
a.cc:18:6: error: 'x' was not declared in this scope
   18 |   if(x[i]>abs(x[j]-x[k]) && x[i]<x[j]+x[k]) count++;
      |      ^
Language: C++

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

int main(){
int N;
  cin >> N;
 int d[110];
 int count;
 for(int i=0;i<N;i++){
    cin >> x[i];    
 }
  
if(N>=3){
  int count =0;
for(int i=0;i<N;i++){
for(int j=i+1;j<N;j++){ 
for(int k=j+1;k<N;k++) {
  if(x[i]>abs(x[j]-x[k]) && x[i]<x[j]+x[k]) count++;
  }  
  }
}
  cout << count << endl;
}
  else cout << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
   10 |     cin >> x[i];
      |            ^
a.cc:18:6: error: 'x' was not declared in this scope
   18 |   if(x[i]>abs(x[j]-x[k]) && x[i]<x[j]+x[k]) count++;
      |      ^
Language: C++

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

int main(){
int N;
  cin >> N;
 int d[110];
 int count;
 for(int i=0;i<N;i++){
    cin >> x[i];    
 }
  
if(N>=3){
  int count =0;
for(int i=0;i<N;i++){
for(int j=i+1;j<N;j++){ 
for(int k=j+1;k<N;k++) {
  if(x[i]>abs(x[j]-[k]) && x[i]<x[j]+x[k]) count++;
  }  
  }
}
  cout << count << endl;
}
  else cout << 0 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
   10 |     cin >> x[i];
      |            ^
a.cc:18:6: error: 'x' was not declared in this scope
   18 |   if(x[i]>abs(x[j]-[k]) && x[i]<x[j]+x[k]) count++;
      |      ^
a.cc: In lambda function:
a.cc:18:23: error: expected '{' before ')' token
   18 |   if(x[i]>abs(x[j]-[k]) && x[i]<x[j]+x[k]) count++;
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
  cin>>n;
 vector<int> v;
for(int i=0;i<n;i++)
{
cin>>v[i];
}
  sort(v.begin(),v.end());\
    a=0;
for(int i=0;i<n;i++)
{
for(int j=0;j<i;j++)
{
for(int k=0;j<n;k++)
{
  if(v[k]!=v[j]&&v[j]!=v[i]&&v[k]+v[j]>v[i])
    a++;
}
}
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'a' was not declared in this scope
   13 |     a=0;
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
  cin>>n;
 vector<int> v;
for(int i=0;i<n;i++)
{
cin>>v[i];
}
  sort(v.begin(),v.end());\
    a=0;
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
for(int k=0;k<n;k++)
{
  if(v[k]!=v[j]&&v[j]!=v[i]&&v[i]+v[j]>v[k])
    a++;
}
}
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'a' was not declared in this scope
   13 |     a=0;
      |     ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
  cin>>n;
 vector<int> v;
for(int i=0;i<n;i++)
{
cin>>v[i];
}
  sort(v.begin(),v.end());\
    a=0;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
{
for(k=0;k<n;k++)
{
  if(v[k]!=v[j]&&v[j]!=v[i]&&v[i]+v[j]>v[k])
    a++;
}
}
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'a' was not declared in this scope
   13 |     a=0;
      |     ^
a.cc:14:5: error: 'i' was not declared in this scope
   14 | for(i=0;i<n;i++)
      |     ^
a.cc:16:5: error: 'j' was not declared in this scope
   16 | for(j=0;j<n;j++)
      |     ^
a.cc:18:5: error: 'k' was not declared in this scope
   18 | for(k=0;k<n;k++)
      |     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    int N;
    cin >> N;
    vector<int> vec(N);
    for(int i=0;i<N;i++) cin >> vec[i];
    sort(vec.begin(),vec.end());
    int ans = 0;

    for(int i=0;i<N;i++){
        for(int j =0;j<i;j++){
            for(int k=0;k<j;k++){
                if(vec[k] != vec[j] && vec[i] != vec[j] && vec[k] + vec[j] > vec[i])   ans++;
            }
        }
    }
    cot << ans;   
}

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

#include<iostream>
#include<algorithm>
using namespace std;
int N,L[100];
main()
{
	cin>>N;
	for(int i=0;i<N;i++)cin>>L[i];
	int cnt=0;
	for(int i=0;i<N;i++)for(int j=i+1;j<N;j++)for(int k=j+1;k<N;k++)
	{
		int A[3]={L[i],L[j],L[k]};
		sort(A,A+3);
		if(A[0]<A[1]&&A[1]<A[2]&&A[0]+A[1]>A[2])
		{
			cnt++;
		}
	}
	cout<<cnt<<endl;
}
#include<iostream>
#include<algorithm>
using namespace std;
int N,L[100];
main()
{
	cin>>N;
	for(int i=0;i<N;i++)cin>>L[i];
	int cnt=0;
	for(int i=0;i<N;i++)for(int j=i+1;j<N;j++)for(int k=j+1;k<N;k++)
	{
		int A[3]={L[i],L[j],L[k]};
		sort(A,A+3);
		if(A[0]<A[1]&&A[1]<A[2]&&A[0]+A[1]>A[2])
		{
			cnt++;
		}
	}
	cout<<cnt<<endl;
}

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
a.cc:24:5: error: redefinition of 'int N'
   24 | int N,L[100];
      |     ^
a.cc:4:5: note: 'int N' previously declared here
    4 | int N,L[100];
      |     ^
a.cc:24:7: error: redefinition of 'int L [100]'
   24 | int N,L[100];
      |       ^
a.cc:4:7: note: 'int L [100]' previously declared here
    4 | int N,L[100];
      |       ^
a.cc:25:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   25 | main()
      | ^~~~
a.cc:25:1: error: redefinition of 'int main()'
a.cc:5:1: note: 'int main()' previously defined here
    5 | main()
      | ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int N,L[100];
main()
{
	cin>>N;
	for(int i=0;i<N;i++)cin>>L[i];
	int cnt=0;
	for(int i=0;i<N;i++)for(int j=i+1;j<N;j++)for(int k=j+1;k<N;k++)
	{
		int A[3]={L[i],L[j],L[k]};
		sort(A,A+3);
		if(A[0]<A[1]&&A[1]<A[2]&&A[0]+A[1]>A[2])
		{
			cnt++;
		}
	}
	cout<<cnt<<endl;
}
#include<iostream>
#include<algorithm>
using namespace std;
int N,L[100];
main()
{
	cin>>N;
	for(int i=0;i<N;i++)cin>>L[i];
	int cnt=0;
	for(int i=0;i<N;i++)for(int j=i+1;j<N;j++)for(int k=j+1;k<N;k++)
	{
		int A[3]={L[i],L[j],L[k]};
		sort(A,A+3);
		if(A[0]<A[1]&&A[1]<A[2]&&A[0]+A[1]>A[2])
		{
			cnt++;
		}
	}
	cout<<cnt<<endl;
}


Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~
a.cc:24:5: error: redefinition of 'int N'
   24 | int N,L[100];
      |     ^
a.cc:4:5: note: 'int N' previously declared here
    4 | int N,L[100];
      |     ^
a.cc:24:7: error: redefinition of 'int L [100]'
   24 | int N,L[100];
      |       ^
a.cc:4:7: note: 'int L [100]' previously declared here
    4 | int N,L[100];
      |       ^
a.cc:25:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   25 | main()
      | ^~~~
a.cc:25:1: error: redefinition of 'int main()'
a.cc:5:1: note: 'int main()' previously defined here
    5 | main()
      | ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> L(N);
  for(int i=0;i<N;i++){
    cin >> L.at(i);
  }
  long long count=0;
  for(int i=0;i<N-2;i++){
    for(int j=i+1;j<N-1;j++){
      for(int k=j+1;k<N;K++){
        int A=L.at(i);
        int B=L.at(j);
        int C=L.at(k);
        if(A==B || B==C || C==A){
          continue;
        }
        if(A<B+C && B<C+A && C<A+B){
          count++;
        }
      }
    }
  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'K' was not declared in this scope
   14 |       for(int k=j+1;k<N;K++){
      |                         ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  vector<int> L(N);
  for(int i=0;i<N;i++){
    cin >> L.at(i);
  }
  long long ans=o;
  for(int i=0;i<N-2;i++){
    for(int j=i+1;j<N-1;j++){
      for(int k=j+1;k<N;k++){
        int A=L.at(i);
        int B=L.at(j);
        int C=L.at(k);
        if(A==B || B==C || C==A){
          continue;
        }
        if(A<B+C && B<C+A && C<A+B){
          ans++;
        }
      }
    }
  }
  cout << ans << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'o' was not declared in this scope
   11 |   long long ans=o;
      |                 ^
Language: C

#include <stdio.h>
 
int main()
{
  int n;
  scanf("%d", &n);
 
  int l[n];
  for(int i = 0; i < n ; i++)
  {
    scanf ("%d", &l[i]);
  }
 
  int ctr = 0;
  
  for ( int i = 0; i < n-2 ; i++)
  {
    for(int j = i+1; j < n-1 ; j++)
	{
      for(int k = j+1; k < n ; k++)
	  {
		if((l[i] < l[j]+l[k]) && (l[j] < l[k]+l[i]) && (l[k] < l[i]+l[j]))
		{
	  		if ((l[i]!=l[j]) && (l[j]!=l[k]) && (l[k]!=l[i]))
			{
	    		ans++;
	  		}
		}
      }
    }
  }
 
  printf("%d\n", ans);
 
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:26:25: error: 'ans' undeclared (first use in this function)
   26 |                         ans++;
      |                         ^~~
main.c:26:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<stdio.h>
int main(){
	int Li,Lj,Lk;
	scanf("%d %d", &Li,&Lj,&Lk);
	int(1<Li<Lj<Lk<N);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:24: error: 'N' was not declared in this scope
    5 |         int(1<Li<Lj<Lk<N);
      |                        ^
Language: C

//a
#include <stdio.h>
int main()
{
	int n, l[103];
	int ctr = 0;
	
	scanf ("%d", &n);
	
	
	for (int i = 0; i<n; i++)
	{
		scanf ("%d", &l[i]);
	}
	
	for (int i = 0; i < n-2; i++)
	{
		for (int j = i+1; i < n-1; k++)
		{
			for (int k = j+1; k<n; k++)
			{
				if (l[i] < l[j]+l[k] && l[j] < l[i]+l[k] && l[k] < l[i]+l[j])
				{
					ctr++;
				}
				
			}
		}		
		
	}
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:44: error: 'k' undeclared (first use in this function)
   18 |                 for (int j = i+1; i < n-1; k++)
      |                                            ^
main.c:18:44: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main()
{
	int n; scanf("%d", &n);
	int num[n], count[n] = {0}, u = 0, ans = 0;
	for(int i = 0; i < n; i++)
	{
		int x, yes = 1;
		scanf("%d", &x);
		for(int j = 0; j < u; j++) 
		{
			if(x == num[j])
			{
				yes = 0;
				count[j]++;
				break;
			}
		}
		if(yes) 
		{
			count[u]++;
			num[u++] = x;
		}
	}
	fls(i,0,u) fls(j,i+1,u) fls(k,j+1,u)
	{
		if(num[i]+num[j]>num[k] && num[i]+num[k]>num[j] && num[k]+num[j]>num[i]) ans += count[i]*count[j]*count[k];
	}
	printf("%d\n", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:13: error: 'i' was not declared in this scope
   27 |         fls(i,0,u) fls(j,i+1,u) fls(k,j+1,u)
      |             ^
a.cc:27:9: error: 'fls' was not declared in this scope; did you mean 'ffs'?
   27 |         fls(i,0,u) fls(j,i+1,u) fls(k,j+1,u)
      |         ^~~
      |         ffs
Language: C

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

int main()
{
	int n; scanf("%d", &n);
	int num[n], count[n] = {0}, u = 0, ans = 0;
	for(int i = 0; i < n; i++)
	{
		int x, yes = 1;
		scanf("%d", &x);
		for(int j = 0; j < u; j++) 
		{
			if(x == num[j])
			{
				yes = 0;
				count[j]++;
				break;
			}
		}
		if(yes) 
		{
			count[u]++;
			num[u++] = x;
		}
	}
	fls(i,0,u) fls(j,i+1,u) fls(k,j+1,u)
	{
		if(num[i]+num[j]>num[k] && num[i]+num[k]>num[j] && num[k]+num[j]>num[i]) ans += count[i]*count[j]*count[k];
	}
	printf("%d\n", ans);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:32: error: variable-sized object may not be initialized except with an empty initializer
    7 |         int num[n], count[n] = {0}, u = 0, ans = 0;
      |                                ^
main.c:27:9: error: implicit declaration of function 'fls'; did you mean 'ffs'? [-Wimplicit-function-declaration]
   27 |         fls(i,0,u) fls(j,i+1,u) fls(k,j+1,u)
      |         ^~~
      |         ffs
main.c:27:13: error: 'i' undeclared (first use in this function)
   27 |         fls(i,0,u) fls(j,i+1,u) fls(k,j+1,u)
      |             ^
main.c:27:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:19: error: expected ';' before 'fls'
   27 |         fls(i,0,u) fls(j,i+1,u) fls(k,j+1,u)
      |                   ^~~~
      |                   ;
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(void) {
  int n, i, j, k;
  long long int *l;
  int count=0;
  scanf("%d", &n);
  if ((l =(long long int *)calloc(n, sizeof(long long int))) == NULL) {
    exit(1);
  }
  for (i=0; i<n; i++) {
    scanf("%lld", &l[i]);
  }
  
  for (i=0; i<n-2; i++) {
    for (j=i+1; j<n-1; j++) {
      for (k=j+1; k<n; k++) {
		if ((l[i]==l[j]) && (l[j]==l[k]) && (l[k]==l[i])) {
          continue;
        if (l[i]+l[j]>l[k] && l[j]+l[k]>l[i] && l[k]+l[i]>l[j]) {
          count++;
        }
      }
    }
  }
  printf("%d", count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(void) {
  int n, i, j, k;
  long long int *l;
  int count=0;
  scanf("%d", &n);
  if ((l =(long long int *)calloc(n, sizeof(long long int))) == NULL) {
    exit(1);
  }
  for (i=0; i<n; i++) {
    scanf("%lld", &l[i]);
  }
  
  for (i=0; i<n-2; i++) {
    for (j=i+1; j<n-1; j++) {
      for (k=j+1; k<n; k++) {
		if ((l[i]==l[j]) && (l[j]==l[k]) && (l[k]==l[i])) {
          continue;
        if (l[i]+l[j]>l[k] && l[j]+l[k]>l[i] && l[k]+l[i]>l[j]) {
          count++;
        }
      }
    }
  }
  printf("%lld", count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:1: error: expected declaration or statement at end of input
   29 | }
      | ^
Language: C

#include <stdio.h>
#include <stdlib.h>
 
int main(void) {
  int n, i, j, k;
  int *l;
  int count=0;
  scanf("%d", &n);
  if ((l = calloc(n, sizeof(int)) == NULL)) {
    exit(1);
  }
  for (i=0; i<n; i++) {
    scanf("%d", &l[i]);
  }
  
  for (i=0; i<n-2; i++) {
    for (j=i+1; j<n-1; j++) {
      for (k=j+1; k<n;; k++) {
        if (l[i]+l[j]>l[k] && l[j]+l[k]>l[i] && l[k]+l[i]>l[j]) {
          count++;
        }
      }
    }
  }
  printf("%d", count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:10: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    9 |   if ((l = calloc(n, sizeof(int)) == NULL)) {
      |          ^
main.c:18:23: error: expected expression before ';' token
   18 |       for (k=j+1; k<n;; k++) {
      |                       ^
Language: C

#include <stdio.h>

int main(void) {
  int n, i, j, k;
  int *l;
  int count=0;
  scanf("%d", &n);
  if ((l = calloc(n, sizeof(int)) == NULL)) {
    exit(1);
  }
  for (i=0; i<n; i++) {
    scanf("%d", &l[i]);
  }
  
  for (i=0; i<n-2; i++) {
    for (j=i+1; j<n-1; j++) {
      for (k=j+1; k<n;; k++) {
        if (l[i]+l[j]>l[k] && l[j]+l[k]>l[i] && l[k]+l[i]>l[j]) {
          count++;
        }
      }
    }
  }
  printf("%d", count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
    8 |   if ((l = calloc(n, sizeof(int)) == NULL)) {
      |            ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'calloc'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:8:12: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch]
    8 |   if ((l = calloc(n, sizeof(int)) == NULL)) {
      |            ^~~~~~
main.c:8:12: note: include '<stdlib.h>' or provide a declaration of 'calloc'
main.c:8:10: error: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
    8 |   if ((l = calloc(n, sizeof(int)) == NULL)) {
      |          ^
main.c:9:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
    9 |     exit(1);
      |     ^~~~
main.c:9:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
main.c:9:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:17:23: error: expected expression before ';' token
   17 |       for (k=j+1; k<n;; k++) {
      |                       ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
	int n;
	int count = 0;
	cin >> n;
	vector<int> a(n);
	for(int i = 0; i < n; ++i){
		cin >> a[i];
		}		
		
	std::sort(a.begin(), a.end());
	
	for(int i = 0; i < n; ++i){
		for(int j = i + 1; j < n; ++j){
			for(int k = j + 1; k < n; ++k){
				if(a[i] != a[j] && a[j] != a[k] && a[i] + a[j] > a[k]){
					count++;
					}
				}
			}
		}
	
	cout << count << endl;
	return 0;

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

#include<stdio.h>
int buble(int a, int b[200]){
   int j,i,tmp;
  for(i=0;i<a;i++){
 	 for(j=0;j<a;j++){
   		 if(b[i]>b[j]){
  	   	   tmp=b[i];
   		   b[i]=b[j];
   		   b[j]=tmp;    
		  }
 	 }
  }
   return b;
  }
int main(){
  int N=0,L[200]={},p=0,q=0,d=0,e=0,f=0,count=0;
  scanf("%d",&N);
  for(p=0;p<=N;p++){
  scanf("%d",&L[p]);
  }
  L[200]=buble(N,L);
  p=(N*N*N-3*N*N+2*N)/6;
  for(d=0;d<N;d++){
    for(e=d+1;e<N;e++){
      for(f=e+1;f<N;f++){
  if(L[d]>=L[e]+L[f]||L[d]==L[e]||L[e]==L[f]){
    count++;
  }
      }
    }
  }
  count=p-count;
  printf("%d",count);
  return 0;
}
#include<stdio.h>
int buble(int a, int b[200]){
   int j,i,tmp;
  for(i=0;i<a;i++){
 	 for(j=0;j<a;j++){
   		 if(b[i]>b[j]){
  	   	   tmp=b[i];
   		   b[i]=b[j];
   		   b[j]=tmp;    
		  }
 	 }
  }
   return b;
  }
int main(){
  int N=0,L[200]={},p=0,q=0,d=0,e=0,f=0,count=0;
  scanf("%d",&N);
  for(p=0;p<=N;p++){
  scanf("%d",&L[p]);
  }
  L[200]=buble(N,L);
  p=(N*N*N-3*N*N+2*N)/6;
  for(d=0;d<N;d++){
    for(e=d+1;e<N;e++){
      for(f=e+1;f<N;f++){
  if(L[d]>=L[e]+L[f]||L[d]==L[e]||L[e]==L[f]){
    count++;
  }
      }
    }
  }
  count=p-count;
  printf("%d",count);
  return 0;
}

Compiler output:
main.c: In function 'buble':
main.c:13:11: error: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   13 |    return b;
      |           ^
main.c: At top level:
main.c:37:5: error: redefinition of 'buble'
   37 | int buble(int a, int b[200]){
      |     ^~~~~
main.c:2:5: note: previous definition of 'buble' with type 'int(int,  int *)'
    2 | int buble(int a, int b[200]){
      |     ^~~~~
main.c: In function 'buble':
main.c:48:11: error: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
   48 |    return b;
      |           ^
main.c: At top level:
main.c:50:5: error: redefinition of 'main'
   50 | int main(){
      |     ^~~~
main.c:15:5: note: previous definition of 'main' with type 'int()'
   15 | int main(){
      |     ^~~~
Language: C

#include<stdio.h>
 int main(){
   int k[]={};
   int a,b,c,d,e,n,l,m,i,tmp;
   for(i==0;i<102;i++){
     scanf("%d",k[i]);
   }
   for(i==0;i<102;i++){
     
   

Compiler output:
main.c: In function 'main':
main.c:8:4: error: expected declaration or statement at end of input
    8 |    for(i==0;i<102;i++){
      |    ^~~
main.c:8:4: error: expected declaration or statement at end of input