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

#include<iostream>
using namespace std;
??
int count(int n,int x){
int cnt = 0;
for(i=1;i<=n-2;i++){
for(j=i+1;j<=n-1;j++){
for(k=j+1;k<=n;k++){
if(i+j+k==x) cnt++;
}
}
}
return cnt;
}

int main(){
int n,x;
while(1){
cin >>n >>x;
if(n==0 && x==0) break;
cout << count(n,x) <<endl;
}
return 0;
}
Compile Error Logs:
code.cpp:7:1: error: stray ???303??? in program 
????for(j=i+1;j<=n-1;j++){ 
^ 
code.cpp:7:1: error: stray ???202??? in program 
code.cpp:7:1: error: stray ???302??? in program 
code.cpp:7:1: error: stray ???240??? in program 
code.cpp:8:1: error: stray ???303??? in program 
????????for(k=j+1;k<=n;k++){ 
^ 
code.cpp:8:1: error: stray ???202??? in program 
code.cpp:8:1: error: stray ???302??? in program 
code.cpp:8:1: error: stray ???240??? in program 
code.cpp:8:1: error: stray ???303??? in program 
code.cpp:8:1: error: stray ???202??? in program 
code.cpp:8:1: error: stray ???302??? in program 
code.cpp:8:1: error: stray ???240??? in program 
code.cpp:10:1: error: stray ???303??? in program 

Compiler output:
a.cc:3:1: error: expected unqualified-id before '?' token
    3 | ??
      | ^
a.cc: In function 'int main()':
a.cc:21:9: error: 'count' was not declared in this scope
   21 | cout << count(n,x) <<endl;
      |         ^~~~~
a.cc: At global scope:
a.cc:25:1: error: 'Compile' does not name a type
   25 | Compile Error Logs:
      | ^~~~~~~
a.cc:27:15: error: 'j' does not name a type
   27 | ????for(j=i+1;j<=n-1;j++){
      |               ^
a.cc:27:22: error: 'j' does not name a type
   27 | ????for(j=i+1;j<=n-1;j++){
      |                      ^
Language: C++

#include<iostream>
using namespace std;

int count(int n,int x){
int cnt = 0;
for(i=1;i<=n-2;i++){
for(j=i+1;j<=n-1;j++){
for(k=j+1;k<=n;k++){
if(i+j+k==x) cnt++;
}
}
}
return cnt;
}

int main(){
int n,x;
while(1){
cin >>n >>x;
if(n==0 && x==0) break;
cout << count(n,x) <<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int count(int, int)':
a.cc:6:5: error: 'i' was not declared in this scope
    6 | for(i=1;i<=n-2;i++){
      |     ^
a.cc:7:5: error: 'j' was not declared in this scope
    7 | for(j=i+1;j<=n-1;j++){
      |     ^
a.cc:8:5: error: 'k' was not declared in this scope
    8 | for(k=j+1;k<=n;k++){
      |     ^
Language: C++

#include<iostreasm>
using namespace std;

int main(){
	int n,x,counter;

	while(1){
		cin>>n>>x;
		counter=0;
		if(n==0&&x==0) return 0;
		for(int i=1;i<=(n-2);i++){
			for(int j=i+1;j<=(n-1);j++){
				for(int k=j+2;k<=n;k++){
					if(i+j+k==x) counter++;
				}
			}
		}
		cout<<counter<<endl;
	}
}

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

#include <iostream>
using namespace std;

int main()
{
  int n,x;
  while(1)
    {
      cnt=0;
      cin >> n >> x;
      if(n==0&&x==0) break;
      for(int i=1;i<=n;i++)
        {
          for(int j=i+1;j<=n;j++)
            {
              for(int k=j+1;k<=n;k++)
                {
                  if(i+j+k==x) cnt++;
                }
            }
        }
      cout << cnt << endl;
    }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
    9 |       cnt=0;
      |       ^~~
      |       int
Language: C++

#include <iostream>
#Include <cstdio>                                                                     
                                                                                        
using namespace std;                                                                    
                                                                                        
int main (void) {                                                                       
  while (true) {                                                                        
    int n, x;                                                                           
    fscanf(stdin, "%d %d", &n, &x);                                                     
    if (n==0 && x==0) {                                                                 
      break;                                                                            
    }                                                                                   
    int ans = 0;                                                                        
    for (int i=1; i<=n; i++) {                                                          
      for (int j=i+1; j<=n; j++) {                                                      
        int k = x-i-j;                                                                  
        if (k>i && k>j && k<=n) {                                                       
          ans++;                                                                        
        }                                                                               
      }                                                                                 
    }                                                                                   
    fprintf(stdout, "%d\n", ans);                                                       
  }                                                                                     
}                                                                                       
                                                                                        
                           

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #Include; did you mean #include?
    2 | #Include <cstdio>
      |  ^~~~~~~
      |  include
Language: C++

#include <stdio.h>

int max(int a,int b);

int main(void){

	double ulim,sum;
	int i,j,k;
	int count=0;
	double tulim[2];
	
	while(1){
		scanf("%lf",&ulim);
		scanf("%lf",&sum);
		
		if(ulim==0&&sum==0){
			break;
		}
		
		tulim[0]=max(ulim,sum/3);
		
		for(i=1;i<tulim[0];i++){
		
			tulim[1]=max((sum-i)/2,ulim);
		
			for(j=i+1;j<tulim[1];j++){
				k=sum-i-j;
				if(k>j && k<=ulim){
					count++;
				}
			}
		}
		
		printf("%d",count);
		
	}
	
	
	return 0;
}

Compiler output:
/usr/bin/ld: /tmp/cc1ylxmX.o: in function `main':
a.cc:(.text+0x9e): undefined reference to `max(int, int)'
/usr/bin/ld: a.cc:(.text+0xeb): undefined reference to `max(int, int)'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
int n, x;
while(1){
 cin >> n >> x;
int neruchin
if ( n == 0 && x == 0 ) break;
for( int i = 1; i <= n-2; i++ ){
 for( int j = i+1; j <= n-1; j++ ){
  for( int k = j+1; k <= n; k++ ){
   if ( i+j+k == x ) neruchin++;
}
}
}
cout << neruchin << endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected initializer before 'if'
    8 | if ( n == 0 && x == 0 ) break;
      | ^~
a.cc:12:22: error: 'neruchin' was not declared in this scope
   12 |    if ( i+j+k == x ) neruchin++;
      |                      ^~~~~~~~
a.cc:16:9: error: 'neruchin' was not declared in this scope
   16 | cout << neruchin << endl;
      |         ^~~~~~~~
Language: C++

int main()
{

	while (1) {
		int n, x;
		cin >> n >> x;
		if (n == 0 && x == 0) break;
		int same = 0;
		for (int i = 1; i <= n-2; i++) {
			for (int j = i+1; j <= n-1; j++) {
				int k;
				k = x - i - j;
				if (k <= n && i < j && j < k) same += 1;
			}
		}
		cout << same << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'cin' was not declared in this scope
    6 |                 cin >> n >> x;
      |                 ^~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout << same << endl;
      |                 ^~~~
a.cc:16:33: error: 'endl' was not declared in this scope
   16 |                 cout << same << endl;
      |                                 ^~~~
Language: C++

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

int main() {
  int n,x;
  while(1) {
    cin >> n >> x;
    int count = 0;
    if(n == 0 && x == 0) break;
    for(int a = 1; a <= n; ++a) {
      for(int b = a + 1: a <= n: ++b ) {
        for(int c = b + 1:c <= n; ++c) {
          if(a + b + c == n) ++count;
          }
        }
      }
      cout << count << endl;      
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: initializer in range-based 'for' loop
   11 |       for(int b = a + 1: a <= n: ++b ) {
      |                 ^
a.cc:11:32: error: expected ')' before ':' token
   11 |       for(int b = a + 1: a <= n: ++b ) {
      |          ~                     ^
      |                                )
a.cc:11:32: error: expected primary-expression before ':' token
a.cc: At global scope:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include<stdio.h>

int main(){
  int n,x,count[1000]=0;
  int a,i,j,k;
  for(a=0;a<1000;a++){
    scanf("%d %d",&n,&x);
    if(n==0&&x==0){
      for(i=1;i<=n;i++){
        for(j=1;j<=n;j++){
          for(k=1;k<=n;k++){
            if(i+j+k==x){
              count++;
            }
          }
        }
      }
    }
  }
  for(i=0;i<a;i++){
    printf("%d\n",count[i]);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:23: error: array must be initialized with a brace-enclosed initializer
    4 |   int n,x,count[1000]=0;
      |                       ^
a.cc:13:15: error: lvalue required as increment operand
   13 |               count++;
      |               ^~~~~
Language: C++

#include <stdio.h>
int main(){
  int n,x,a,i,j,k,p;
  for(;;){
    scanf("%d %d",&n,&x);
    if(n==0&&x==0){
      return 0;
    }
    p=0;
    for(i=1,i<n;i++){
      for(j=1;j<n;j++){
        for(k=1;k<n;k++){
          if(i+k+j==n){
            p++;
          }
        }
      }
    }
    printf("%d\n",p/6);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ';' before ')' token
   10 |     for(i=1,i<n;i++){
      |                    ^
      |                    ;
Language: C++

#include <stdio.h>
int main(){
  int n,x,a,i,j,k,p=0;
  for(;;){
    scanf("%d %d",&n,&x);
    if(n==0&&x==0){
      return 0;
    }
    for(i=1;i=<n;i++){
      for(j=1;j=<n;j++){
        for(k=1;k=<n;k++){
          if(i+j+k==x&&i!=j&&j!=k&&k!=i){
            p++;
          }
        }
      }
    }
    printf("%d\n",p/6);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '<' token
    9 |     for(i=1;i=<n;i++){
      |               ^
a.cc:10:17: error: expected primary-expression before '<' token
   10 |       for(j=1;j=<n;j++){
      |                 ^
a.cc:11:19: error: expected primary-expression before '<' token
   11 |         for(k=1;k=<n;k++){
      |                   ^
Language: C++

#include <iostream>
using namespace std;
const int M=1000000;

int main(){
    int n[M],x[M];
    int m=0;
    while(1){
        cin>>n[m]>>x[m];
        if(n==0&&x==0) break;
        m++;
    }

    for(int v=0;v<m;v++){
    int count=0;
    for(int i=1;i<x/3;i++){
        if(n-i<2*x){
            for(int k=i+1;k<(n-i)/2;k++){
                if(n-i-k<=x) count++;
            }
        }
    }
}
    cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: invalid operands of types 'int [1000000]' and 'int' to binary 'operator/'
   16 |     for(int i=1;i<x/3;i++){
      |                   ~^~
      |                   | |
      |                   | int
      |                   int [1000000]
a.cc:17:17: error: invalid operands of types 'int' and 'int [1000000]' to binary 'operator*'
   17 |         if(n-i<2*x){
      |                ~^~
      |                | |
      |                | int [1000000]
      |                int
a.cc:18:34: error: invalid operands of types 'int*' and 'int' to binary 'operator/'
   18 |             for(int k=i+1;k<(n-i)/2;k++){
      |                             ~~~~~^~
      |                               |   |
      |                               |   int
      |                               int*
a.cc:24:11: error: 'count' was not declared in this scope
   24 |     cout<<count<<endl;
      |           ^~~~~
Language: C++

#include <iostream>
using namespace std;
const int M=1000000;

int main(){
    int n[M],x[M];
    int m=0;
    while(1){
        cin>>n[m]>>x[m];
        if(n==0&&x==0) break;
        m++;
    }

    for(int v=0;v<m;v++){
    int count=0;
    for(int i=1;i<x[v]/3;i++){
        if(n[v]-i<2*x[v]){
            for(int k=i+1;k<(n[v]-i)/2;k++){
                if(n-i-k<=x[v]) count++;
            }
        }
    }
}
    cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                 if(n-i-k<=x[v]) count++;
      |                    ~~~~~^~~~~~
a.cc:24:11: error: 'count' was not declared in this scope
   24 |     cout<<count<<endl;
      |           ^~~~~
Language: C++

#include <iostream>
using namespace std;
const int M=1000000;

int main(){
    int n[M],x[M];
    int m=0;
    while(1){
        cin>>n[m]>>x[m];
        if(n==0&&x==0) break;
        m++;
    }

    for(int v=0;v<m;v++){
    int count=0;
    for(int i=1;i<x[v]/3;i++){
        if(n[v]-i<2*x[v]){
            for(int k=i+1;k<(n[v]-i)/2;k++){
                if(n[v]-i-k<=x[v]) count++;
            }
        }
    }
}
    cout<<count<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:11: error: 'count' was not declared in this scope
   24 |     cout<<count<<endl;
      |           ^~~~~
Language: C++

#include<stdio.h>

int main ()
{
 int s=0,i,j,k;
 while(1){
  scanf("%d %d",&n,&x);
  if (n=0 &&x==0)break;
  for(i=1 ; i<=n ; i++){
   for(j=0 ; j<=n ; j++){
    for(k=0 ; k<=n ; k++){
     if(i+j+k==x){
      s++;
     }
    }
   }
  }
  printf("%d\n",s);
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   scanf("%d %d",&n,&x);
      |                  ^
a.cc:7:21: error: 'x' was not declared in this scope
    7 |   scanf("%d %d",&n,&x);
      |                     ^
Language: C++

#include<stdio.h>

int main ()
{
 int s=0,i,j,k;
 while(1){
  scanf("%d %d",&n,&x);
  if (n=0 &&x==0)break;
  for(i=1 ; i<=n ; i++){
   for(j=i+1 ; j<=n ; j++){
    for(k=j+1 ; k<=n ; k++){
     if(i+j+k==x){
      s++;
     }
    }
   }
  }
  printf("%d\n",s);
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   scanf("%d %d",&n,&x);
      |                  ^
a.cc:7:21: error: 'x' was not declared in this scope
    7 |   scanf("%d %d",&n,&x);
      |                     ^
Language: C++

#include<stdio.h>

int main ()
{
 int s=0,i,j,k;
 while(1){
  scanf("%d %d",&n,&x);
  if (n=0 &&x==0) break;
  for(i=1 ; i < n+1 ; i++){
   for(j=i+1 ; j < n+1 ; j++){
    for(k=j+1 ; k < n+1 ; k++){
     if (i+j+k == x) {
      s++;
     }
    }
   }
  }
  printf("%d\n",s);
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   scanf("%d %d",&n,&x);
      |                  ^
a.cc:7:21: error: 'x' was not declared in this scope
    7 |   scanf("%d %d",&n,&x);
      |                     ^
Language: C++

#include<stdio.h>

int main ()
{
 int i,j,k;
 while(1){
  int s=0;
  scanf("%d %d",&n,&x);
  if (n=0 &&x==0) break;
  for(i=1 ; i < n+1 ; i++){
   for(j=i+1 ; j < n+1 ; j++){
    for(k=j+1 ; k < n+1 ; k++){
     if (i+j+k == x) {
      s++;
     }
    }
   }
  }
  printf("%d\n",s);
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: 'n' was not declared in this scope
    8 |   scanf("%d %d",&n,&x);
      |                  ^
a.cc:8:21: error: 'x' was not declared in this scope
    8 |   scanf("%d %d",&n,&x);
      |                     ^
Language: C++

#include <stdlib.h>
#include <math.h>
#include <stdio.h>

int main(){
int i,j,k,n,m,x;
scanf("%d",n);
scanf("%d",m);

if(n == 0){break;}

x = 0;
for(i=1;i<n-1;i++){
    for(j=i+1;j<n;j++){
       for(k=j+1;k<n+1;k++){
           if(i+j+k == m){
              x++;
          }
        }
      }
   }
printf("%d\n",x);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: break statement not within loop or switch
   10 | if(n == 0){break;}
      |            ^~~~~
Language: C++

#include <stdlib.h>
#include <math.h>
#include <stdio.h>

int main(){
int i,j,k,n,m,x;
scanf("%d",n);
printf(" ");
scanf("%d",m);

if(n == 0 && x == 0){
   break;
}

x = 0;
for(i=1;i<n-1;i++){
    for(j=i+1;j<n;j++){
       for(k=j+1;k<n+1;k++){
           if(i+j+k == m){
              x++;
          }
        }
      }
   }
printf("%d\n",x);
return 0;
}

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

#include <stdlib.h>
#include <math.h>
#include <stdio.h>

int main(){
while{
int i,j,k,n,m,x;
scanf("%d",n);
printf(" ");
scanf("%d",m);

if(n == 0 && x == 0){
   break;
}

x = 0;
for(i=1;i<n-1;i++){
    for(j=i+1;j<n;j++){
       for(k=j+1;k<n+1;k++){
           if(i+j+k == m){
              x++;
          }
        }
      }
   }
printf("%d\n",x);
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected '(' before '{' token
    6 | while{
      |      ^
      |      (
a.cc:6:6: error: expected primary-expression before '{' token
a.cc:6:6: error: expected ')' before '{' token
    6 | while{
      |      ^
      |      )
Language: C++

#include <iostream>
using namespace std;
 
int main() {
    int n, x;
  
    while (1) {
        cin >> n >> x;
        
        if (n == 0 && x == 0) {
            return 0;
        } else {
            cout << computeCombination( 1, n, 3, x);
        }
    }   
}

// m??\???n??\????????°?????????????????????????????§a?????°?????????????????????????¨????x??¨??????????????????????????°????±???????
int computeCombination (int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }

    int combination = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        combination = combination + computeCombination( i+1, n, a-1, x-i);
    }
    return combination;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'computeCombination' was not declared in this scope
   13 |             cout << computeCombination( 1, n, 3, x);
      |                     ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main() {
    int n, x;
   
    while (1) {
        cin >> n >> x;
         
        if (n == 0 && x == 0) {
            return 0;
        } else {
            cout << computeCombination( 1, n, 3, x);
        }
    }   
}

int computeCombination (int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }
 
    int combination = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        combination = combination + computeCombination( i+1, n, a-1, x-i);
    }
    return combination;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'computeCombination' was not declared in this scope
   13 |             cout << computeCombination( 1, n, 3, x);
      |                     ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main() {
    int n, x;
   
    while (1) {
        cin >> n >> x;
         
        if (n == 0 && x == 0) {
            return 0;
        } else {
            cout << computeCombination( 1, n, 3, x) << endl;
        }
    }   
}

public int computeCombination (int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }
 
    int combination = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        combination = combination + computeCombination( i+1, n, a-1, x-i);
    }
    return combination;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'computeCombination' was not declared in this scope
   13 |             cout << computeCombination( 1, n, 3, x) << endl;
      |                     ^~~~~~~~~~~~~~~~~~
a.cc: At global scope:
a.cc:18:1: error: expected unqualified-id before 'public'
   18 | public int computeCombination (int m, int n, int a, int x) {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main() {
    int n, x;
   
    while (1) {
        cin >> n >> x;
         
        if (n == 0 && x == 0) {
            return 0;
        } else {
            cout << computeCombination( 1, n, 3, x) << endl;
        }
    }   
}

public int computeCombination(int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }
 
    int combination = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        combination = combination + computeCombination( i+1, n, a-1, x-i);
    }
    return combination;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'computeCombination' was not declared in this scope
   13 |             cout << computeCombination( 1, n, 3, x) << endl;
      |                     ^~~~~~~~~~~~~~~~~~
a.cc: At global scope:
a.cc:18:1: error: expected unqualified-id before 'public'
   18 | public int computeCombination(int m, int n, int a, int x) {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main() {
    int n, x;
   
    while (1) {
        cin >> n >> x;
         
        if (n == 0 && x == 0) {
            return 0;
        } else {
            cout << computeCombination( 1, n, 3, x) << endl;
        }
    }   
}

int computeCombination(int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }
 
    int combination = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        combination = combination + computeCombination( i+1, n, a-1, x-i);
    }
    return combination;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'computeCombination' was not declared in this scope
   13 |             cout << computeCombination( 1, n, 3, x) << endl;
      |                     ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main() {
    int n, x;
   
    while (1) {
        cin >> n >> x;
         
        if (n == 0 && x == 0) {
            return 0;
        } else {
            int ans = computeCombination( 1, n, 3, x);
            cout << ans << endl;
        }
    }   
}

int computeCombination(int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }
 
    int combination = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        combination = combination + computeCombination( i+1, n, a-1, x-i);
    }
    return combination;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: 'computeCombination' was not declared in this scope
   13 |             int ans = computeCombination( 1, n, 3, x);
      |                       ^~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main() {
    int n, x;
   
    while (1) {
        cin >> n >> x;
         
        if (n == 0 && x == 0) {
            return 0;
        } else {
            cout << combination( 1, n, 3, x) << endl;
        }
    }   
}

int combination(int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }
 
    int c = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        combination = c + combination( i+1, n, a-1, x-i);
    }
    return c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'combination' was not declared in this scope
   13 |             cout << combination( 1, n, 3, x) << endl;
      |                     ^~~~~~~~~~~
a.cc: In function 'int combination(int, int, int, int)':
a.cc:29:21: error: assignment of function 'int combination(int, int, int, int)'
   29 |         combination = c + combination( i+1, n, a-1, x-i);
      |         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;
  
int main() {
    int n, x;
   
    while (1) {
        cin >> n >> x;
         
        if (n == 0 && x == 0) {
            return 0;
        } else {
            cout << combination( 1, n, 3, x) << endl;
        }
    }   
}

int combination(int m, int n, int a, int x) {
    if (a <= 1) {
        if (m <= x && x <= n) {
            return 1;
        } else {
            return 0;
        }
    }
 
    int c = 0;
    for (int i = m; (i <= n) && (i <= x); i++) {
        c = c + combination( i+1, n, a-1, x-i);
    }
    return c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'combination' was not declared in this scope
   13 |             cout << combination( 1, n, 3, x) << endl;
      |                     ^~~~~~~~~~~
Language: C++

#include<iostream>

int main(void){
    int n,x;
    while(std::cin>>n>>x){
        int count=0
        for(int i=1;i<=n-2;i++){
            for(int j=i+1;j<=n-1;j++){
                for(int k=j+1;k<=n;k++){
                    if(i+j+k==x) ++count;
                }
            }
        }
        std::cout<<count<<std::endl;
    }    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected ',' or ';' before 'for'
    7 |         for(int i=1;i<=n-2;i++){
      |         ^~~
a.cc:7:21: error: 'i' was not declared in this scope
    7 |         for(int i=1;i<=n-2;i++){
      |                     ^
Language: C++

import java.util.Scanner;

public class Main2 {

	public static void main(String[] args) {

		int n = 0;
		int x = 0;
		int cnt = 0;
		
		Scanner sc= new Scanner( System.in );

		while ( true ) {
			n = sc.nextInt();
			x = sc.nextInt();

			if ( n == 0 && x == 0 ) {
				break;
			}

			for ( int i = 1 ; i < ( n - 1 ) ; i++ ) {
				for  ( int j = ( i + 1 ) ; j < n ; j++ ) {
					for ( int k = ( j + 1 ) ; k < ( n + 1 ) ; k++ ) {
//						System.out.println( i + " " + j + " " + k );
						if ( ( i + j + k ) == x ) {
							cnt++;
						}
					}
				}

			}
			System.out.println( cnt );
		}
		sc.close();
	}
}


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

while True:
  (n,x) = tuple(map(int,input().split()))
  if n == 0 and x == 0:
    break
  else:
    count = 0
    for i in range(1, n + 1):
      for j in range(1, i):
        r = x - i - j
        if 0 < r and r < j :
          count += 1
    print(count)



    


Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

while True:
    n, x = map(int, input().split())
    if n == x == 0:
        break

    ans = 0
    for i in range(1, n+1):
        for j in range(i+1, n+1):
            k = x - (i + j)
            if k >= 1 and k <= n and k > j:
                ans += 1
    print(ans)


Compiler output:
a.cc:1:1: error: expected unqualified-id before 'while'
    1 | while True:
      | ^~~~~
Language: C++

#include <stdio.h>

int main(void) {
  int n, x, i, j, k;
  while( 1 ) {
    scanf("%d%d", &n, &x);
    if(!n && !x) break;
    int ans = 0;
    for(i = 1; i <= n; ++i) for(j = i + 1; j <= n; ++j) for(k = j + 1; k <= n; ++k) if(i + j + k == x) ++ans;
    printf("%d\n", ans)
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: expected ';' before '}' token
   10 |     printf("%d\n", ans)
      |                        ^
      |                        ;
   11 |   }
      |   ~
Language: C++

#include<cstdio>
using namespace std;
int main(){
  int n,x;
  while({
    scanf(" %d %d",n,x);
    if(n==0 &&x==0 ){
        break;
    }
    int cnt=0;
    for(int i=1;i<=a;i++){
      for(int j=i+1;j<=a;j++){
    for(int k=j+1;k<=a;k++){
      if(i+j+k==b)cnt++;
    }
      }
    }
    printf("%d\n",cnt);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected primary-expression before '{' token
    5 |   while({
      |         ^
a.cc:5:9: error: expected ')' before '{' token
    5 |   while({
      |        ~^
      |         )
a.cc:11:20: error: 'a' was not declared in this scope
   11 |     for(int i=1;i<=a;i++){
      |                    ^
a.cc:14:17: error: 'b' was not declared in this scope
   14 |       if(i+j+k==b)cnt++;
      |                 ^
Language: C++

#include<cstdio>
using namespace std;
int main(){
  int n,x;
  while(1){
    scanf(" %d %d",n,x);
    if(n==0 &&x==0 ){
        break;
    }
    int cnt=0;
    for(int i=1;i<=a;i++){
      for(int j=i+1;j<=a;j++){
    for(int k=j+1;k<=a;k++){
      if(i+j+k==b)cnt++;
    }
      }
    }
    printf("%d\n",cnt);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'a' was not declared in this scope
   11 |     for(int i=1;i<=a;i++){
      |                    ^
a.cc:14:17: error: 'b' was not declared in this scope
   14 |       if(i+j+k==b)cnt++;
      |                 ^
Language: C++

#include<cstdio>
using namespace std;
int main(){
  int n,x;
  while(1){
    scanf(" %d %d",&n,&x);
    if(n==0 &&x==0 ){
        break;
    }
    int cnt=0;
    for(int i=1;i<=a;i++){
      for(int j=i+1;j<=a;j++){
    for(int k=j+1;k<=a;k++){
      if(i+j+k==b)cnt++;
    }
      }
    }
    printf("%d\n",cnt);
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: 'a' was not declared in this scope
   11 |     for(int i=1;i<=a;i++){
      |                    ^
a.cc:14:17: error: 'b' was not declared in this scope
   14 |       if(i+j+k==b)cnt++;
      |                 ^
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
    while(1){
        int n,x;
        cin>>n>>x;
        if(n==0 && x==0)break;
        int ans=0;
        for(int a=1;a<=n;a++)
            for(int b=a+1;b<=n;b++)
                for(int c=b+1;c<=n;c++){
                    if(a+b+c!=x)continue;
                    ans++;
                }
        cout<<ans<<endl;
    }
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>n>>x;
      |         ^~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout<<ans<<endl;
      |         ^~~~
a.cc:15:20: error: 'endl' was not declared in this scope
   15 |         cout<<ans<<endl;
      |                    ^~~~
Language: C++

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

int main(){
for(;;){
int n,x;
cin>>n>>x;
if(n==0&&x==0){break;}
int ans=0;
for(int a=1;a<=n;a++){
for(int b=a+1;b<=n;b++){
for(int c=b+1;c<=n;c++){
if(a+b+c=x){ans++;}
}}}
cout<<ans<<endl;
}


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: lvalue required as left operand of assignment
   13 | if(a+b+c=x){ans++;}
      |    ~~~^~
Language: C++

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

int main(){
for(;;){
int n,x;
cin>>n>>x;
if(n==0 && x==0){break;}
int ans=0;
for(int a=1;a<=n;a++){
for(int b=a+1;b<=n;b++){
for(int c=b+1;c<=n;c++){
if(a+b+c=x){ans++;}
}}}
cout<<ans<<endl;
}


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: lvalue required as left operand of assignment
   13 | if(a+b+c=x){ans++;}
      |    ~~~^~
Language: C++

#include <iostream>
#include <cmath>
#include <string>
#include <string.h>
#include <cstdlib>
#include <iomanip>
#include <stdio.h>

using namespace std;

struct combi {int a,int b,int c};

int match_combi(struct combi *cmb,int a,int b,int c)
{
    if(cmb->a==a&&cmb->b==b&&cmb->c)
        return 1;
}

int main(){

  int n,x,count=0;
  struct combi *c,*c_orig;

  c_orig = c = (struct *combi)malloc(sizeof(combi));

  while(1){
    scanf("%d %d\n",&n,&x);

    if(n==0&&x==0) {
      printf("%d\n",count/6);
      return 0;
    }

    for(int i=1;i<=n;i++){
      for(int j=1;j<=n;j++){
          if(j==i)
              continue;
        for(int k=1;k<=n;k++){
          if(k==i || k==j)
              continue;
          if(i+j+k==x)
            count++;
        }
      }
    }
  }
}


Compiler output:
a.cc:11:21: error: expected unqualified-id before 'int'
   11 | struct combi {int a,int b,int c};
      |                     ^~~
a.cc: In function 'int match_combi(combi*, int, int, int)':
a.cc:15:24: error: 'struct combi' has no member named 'b'
   15 |     if(cmb->a==a&&cmb->b==b&&cmb->c)
      |                        ^
a.cc:15:35: error: 'struct combi' has no member named 'c'
   15 |     if(cmb->a==a&&cmb->b==b&&cmb->c)
      |                                   ^
a.cc: In function 'int main()':
a.cc:24:17: error: expected primary-expression before 'struct'
   24 |   c_orig = c = (struct *combi)malloc(sizeof(combi));
      |                 ^~~~~~
a.cc:24:17: error: expected ')' before 'struct'
   24 |   c_orig = c = (struct *combi)malloc(sizeof(combi));
      |                ~^~~~~~
      |                 )
a.cc: In function 'int match_combi(combi*, int, int, int)':
a.cc:17:1: warning: control reaches end of non-void function [-Wreturn-type]
   17 | }
      | ^
Language: C++

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

int main(){
    int n,x;
    while(1){
    cin >>n>>x;
    if (n==-1&&x==-1)break;
    for (int a=0;i<n;a++)
       for (int b =a+1;b<= n;b++)
          for (int  c = b+1;c<=n;c++){
             if (a+b+c !=x) continue;
             ans++;
           }
        cout <<ans<<endl;
      }
           return 0;
      }


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

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

int main(){
    int n,x;
    while(1){
    cin >>n>>x;
    if (n==-1&&x==-1)break;
    for (int a=0;i<n;a++)
       for (int b =a+1;b<= n;b++)
          for (int  c = b+1;c<=n;c++){
             if (a+b+c !=x) continue;
             ans++;
           }
        cout <<ans<<endl;
      }
           return 0;
      }


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'i' was not declared in this scope
    9 |     for (int a=0;i<n;a++)
      |                  ^
a.cc:13:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |              ans++;
      |              ^~~
      |              abs
a.cc:15:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |         cout <<ans<<endl;
      |                ^~~
      |                abs
Language: C++

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

int main(){
    int n,x;
    while(1){
    cin >>n>>x;
    if (n==0&&x==0)break;
    for (int a=0;i<n;a++)
       for (int b =a+1;b<= n;b++)
          for (int  c = b+1;c<=n;c++){
             if (a+b+c !=x) continue;
             ans++;
           }
        cout <<ans<<endl;
      }
           return 0;
      }


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'i' was not declared in this scope
    9 |     for (int a=0;i<n;a++)
      |                  ^
a.cc:13:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |              ans++;
      |              ^~~
      |              abs
a.cc:15:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |         cout <<ans<<endl;
      |                ^~~
      |                abs
Language: C++

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

int main(){
    int n,x;
    while(1){
    cin >>n>>x;
    if (n==0&&x==0)break;
    for (int a=1;a<=n;a++)
       for (int b =a+1;b<= n;b++)
          for (int  c = b+1;c<=n;c++){
             if (a+b+c !=x) continue;
             ans++;
           }
        cout <<ans<<endl;
      }
           return 0;
      }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |              ans++;
      |              ^~~
      |              abs
a.cc:15:16: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |         cout <<ans<<endl;
      |                ^~~
      |                abs
Language: C++

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


int main(){
  while(1){
  int n,x;
  cin>>n>>x;
  if(n ==0 && x ==0) break;
 int ans = 0;
 for(int a=1;a<=n;a++)
 for(int b=1;b<=n;b++)
 for(int c=1;c<=n;c++){
 if(a+b+c = x) continue;
 ans++;
 }
 cout<<ans<<endl;
 }

 return 0;
}


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

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


int main(){
  while(1){
  int n,x;
  cin>>n>>x;
  if(n ==0 && x ==0) break;
 int ans = 0;
 for(int a=1;a<=n;a++)
 for(int b=a+1;b<=n;b++)
 for(int c=b+1;c<=n;c++){
 if(a+b+c = x) continue;
 ans++;
 }
 cout<<ans<<endl;
 }

 return 0;
}


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

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


int main(){
  while(1){
  int n,x;
  cin>>n>>x;
  if(n ==0 && x ==0) break;
 int ans = 0;
 for(int a=1;a<=n;a++)
 for(int b=a+1;b<=n;b++)
 for(int c=b+1;c<=n;c++){
 if(a+b+c != x) continue;
 ans++;
 }
 cout<<ans<<endl;
 }

 return 0;
}


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

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


int main(){
  while(1){
  int n,x;
  cin>>n>>x;
  if(n ==0 && x ==0) break;
 int ans = 0;
 for(int a=1;a<=n;a++)
 for(int b=a+1;b<=n;b++)
 for(int c=b+1;c<=n;c++){
 if(a + b + c != x) continue;
 ans++;
 }
 cout<<ans<<endl;
 }

 return 0;
}


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

#include<iostream>
using namespace std;
int main(){

while(1){
int n,x;
cin>>n>>x;
if(n==0 && x==0)break;

int r;

for(int i=1;i<=n-2;i++){
 for(int j=i+1;j<=n-1;j++){
  for(int k=j+1;k<=n;k++){
   if(i+j+k=x)r++;
  }
 }
}

}

}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: lvalue required as left operand of assignment
   15 |    if(i+j+k=x)r++;
      |       ~~~^~
Language: C++

#include<iostream>
using namespace std;
int main(){

while(1){
int n,x;
cin>>n>>x;
if(n==0 && x==0)break;

int r;

for(int i=1;i<=n-2;i++){
 for(int j=i+1;j<=n-1;j++){
  for(int k=j+1;k<=n;k++){
   if(i+j+k=r)r++;
  }
 }
}

}

}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: lvalue required as left operand of assignment
   15 |    if(i+j+k=r)r++;
      |       ~~~^~
Language: C++

#include<iostream>
using namespace std;
int main(){

while(1){
int n,x;
cin>>n>>x;
if(n==0 && x==0)break;

int r;

for(int i=1;i<=n-2;i++){
 for(int j=i+1;j<=n-1;j++){
  for(int k=j+1;k<=n;k++){
   if(i+j+k=r){
    r++;
   }
  }
 }
}

}

}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: lvalue required as left operand of assignment
   15 |    if(i+j+k=r){
      |       ~~~^~
Language: C++

#include<bits/stdc++.h>
usingnamespace std;
main(){
  while(1){
    int x,n,count=0;
    cin>>n>>x;
    if(x==0&&n==0)break;

    for(int i=1;i<=n;i++){
      for(int j=1;j<=n;j++){
	for(int k=1;k<=n;k++){
	  if(i+j+k==x && i!=j&&i!=k&&j!=k)count++;
	  
      
	}
      }
    }
    count<<k<<endl;	
    
  }
  
  
}
    



Compiler output:
a.cc:2:1: error: 'usingnamespace' does not name a type
    2 | usingnamespace std;
      | ^~~~~~~~~~~~~~
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin>>n>>x;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:12: error: 'k' was not declared in this scope
   18 |     count<<k<<endl;
      |            ^
a.cc:18:15: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |     count<<k<<endl;
      |               ^~~~
      |               std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
main(){
  while(1){
    int x,n,count=0;
    cin>>n>>x;
    if(x==0&&n==0)break;

    for(int i=1;i<=n;i++){
      for(int j=1;j<=n;j++){
	for(int k=1;k<=n;k++){
	  if(i+j+k==x && i!=j&&i!=k&&j!=k)count++;
	  
      
	}
      }
    }
    count<<k<<endl;	
    
  }
  
  
}
    



Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:18:12: error: 'k' was not declared in this scope
   18 |     count<<k<<endl;
      |            ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
    int n,x,i=0;
    for(;;){
        cin >> n >> x;
        if(n!=0&&x!=0){
            for(int a=0;a<n-2;a++){
                for(int b=a+1;b<n-1;b++){
                    for(int c=b+1;c<n;c++){
                        if(a+b+c+3==x)
                            i++;
                    }
                }
            }
        }
        else break;
        cout << i << endl;
        i=0
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: expected ';' before '}' token
   22 |         i=0
      |            ^
      |            ;
   23 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int count(int n, int x){
  int cnt=0;
  for(int i=1; i<=n-2; i++){
    for(int j=i+1;j<=n-1;j++){
      for(int k=j+1; k<=n; k++){
        if(i+j+k==0)cnt++;
      }
    }
  }
  return cnt;
}

int main(){
  int n, x;

  while(1){
    cin>>n>>x;
    if(n==0; && x==0)break;
    cout << count(n, x) <<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: label 'x' used but not defined
   21 |     if(n==0; && x==0)break;
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int count(int n, int x){
  int cnt=0;
  for(int i=1; i<=n-2; i++){
    for(int j=i+1;j<=n-1;j++){
      for(int k=j+1; k<=n; k++){
        if(i+j+k==x) cnt++;
      }
    }
  }
  return cnt;
}

int main(){
  int n, x;

  while(1){
    cin>>n>>x;
    if(n==0; && x==0)break;
    cout << count(n, x) <<endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: label 'x' used but not defined
   21 |     if(n==0; && x==0)break;
      |                 ^
Language: C++

#include<stdio.h>

int main(void){

int i,kosuu,k,j=0;

char moji[100][21];

scanf(“%d”,&kosuu);

for(i=0;i<kosuu;i++) scanf(“%s”,moji[i]);

for(j=k+1;j<kosuu;j++){

　if(strcmp(moji[k],moji[j])>0){

　　k=j;

　　　}

　　}

　printf(“%s\n”,moji[k]);

return 0; }


Compiler output:
a.cc:9:7: error: extended character “ is not valid in an identifier
    9 | scanf(“%d”,&kosuu);
      |       ^
a.cc:9:9: error: extended character ” is not valid in an identifier
    9 | scanf(“%d”,&kosuu);
      |         ^
a.cc:11:28: error: extended character “ is not valid in an identifier
   11 | for(i=0;i<kosuu;i++) scanf(“%s”,moji[i]);
      |                            ^
a.cc:11:30: error: extended character ” is not valid in an identifier
   11 | for(i=0;i<kosuu;i++) scanf(“%s”,moji[i]);
      |                              ^
a.cc:15:1: error: extended character 　 is not valid in an identifier
   15 | 　if(strcmp(moji[k],moji[j])>0){
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
   17 | 　　k=j;
      | ^
a.cc:17:1: error: extended character 　 is not valid in an identifier
a.cc:19:1: error: extended character 　 is not valid in an identifier
   19 | 　　　}
      | ^
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc:19:1: error: extended character 　 is not valid in an identifier
a.cc:21:1: error: extended character 　 is not valid in an identifier
   21 | 　　}
      | ^
a.cc:21:1: error: extended character 　 is not valid in an identifier
a.cc:23:1: error: extended character 　 is not valid in an identifier
   23 | 　printf(“%s\n”,moji[k]);
      | ^
a.cc:23:10: error: extended character “ is not valid in an identifier
   23 | 　printf(“%s\n”,moji[k]);
      |          ^
a.cc:23:13: error: stray '\' in program
   23 | 　printf(“%s\n”,moji[k]);
      |             ^
a.cc:23:14: error: extended character ” is not valid in an identifier
   23 | 　printf(“%s\n”,moji[k]);
      |              ^
a.cc: In function 'int main()':
a.cc:9:7: error: '\U0000201c' was not declared in this scope
    9 | scanf(“%d”,&kosuu);
      |       ^
a.cc:9:9: error: 'd\U0000201d' was not declared in this scope
    9 | scanf(“%d”,&kosuu);
      |         ^~
a.cc:11:30: error: 's\U0000201d' was not declared in this scope
   11 | for(i=0;i<kosuu;i++) scanf(“%s”,moji[i]);
      |                              ^~
a.cc:15:6: error: 'strcmp' was not declared in this scope
   15 | 　if(strcmp(moji[k],moji[j])>0){
      |      ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<stdio.h>
  +++ |+#include <cstring>
    2 | 
a.cc:15:1: error: '\U00003000if' was not declared in this scope
   15 | 　if(strcmp(moji[k],moji[j])>0){
      | ^~~~
a.cc:21:1: error: '\U00003000\U00003000' was not declared in this scope
   21 | 　　}
      | ^~~~
a.cc:23:12: error: 's' was not declared in this scope
   23 | 　printf(“%s\n”,moji[k]);
      |            ^
a.cc:23:1: error: '\U00003000printf' was not declared in this scope; did you mean 'vsprintf'?
   23 | 　printf(“%s\n”,moji[k]);
      | ^~~~~~~~
      | vsprintf
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<list>
#include<queue>
#include<deque>
#include<algorithm>
#include<numeric>
#include<utility>
#include<complex>
#include<functional>
#include<stdio.h>
using namespace std;

int main(){
    while(1){
        int n,x;
        cin >> n >> x;
        if(n == 0 && x == 0){
            break;
        }else{
            int count = 0;
            int i,j,k;
            for(i =1;i<n;i++){
                for(j =1;j<n;j++){
                    for(k=1;k<n;k++){
                        if(i<j && j < k && i+j+k=x ){
                            count+=1;
                        }
                    }
                }
            }
            cout << count << endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:41: error: lvalue required as left operand of assignment
   34 |                         if(i<j && j < k && i+j+k=x ){
      |                            ~~~~~~~~~~~~~^~~~~~~~