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

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

int main() {
  int N;
  cin >> N;
  for (int i = 1; i <= N; i++) {
    for (int x = 1; x <= N; x++) {
      for (int y = 1; y <= x; y++) {
        for (int z = 1; z <= y; z++) {
          int A = 0;
          int B = 0;
          int C = 0;
          if (x == y)
            A = 1;
          if (y == z)
            B = 1;
          if (z == x)
            C = 1;
          if ((x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x) == 2*N && A+B+C == 3)
            counter == 1;
          if ((x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x) == 2*N && A+B+C == 1)
          counter == 3;
          if ((x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x) == 2*N && A+B+C == 0)
            counter == 6;
          else
            counter == 0;
        }
      }
    }
  cout << counter << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: 'counter' was not declared in this scope
   21 |             counter == 1;
      |             ^~~~~~~
a.cc:23:11: error: 'counter' was not declared in this scope
   23 |           counter == 3;
      |           ^~~~~~~
a.cc:25:13: error: 'counter' was not declared in this scope
   25 |             counter == 6;
      |             ^~~~~~~
a.cc:27:13: error: 'counter' was not declared in this scope
   27 |             counter == 0;
      |             ^~~~~~~
a.cc:31:11: error: 'counter' was not declared in this scope
   31 |   cout << counter << endl;
      |           ^~~~~~~
Language: C++

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

int main(void){
    int n;cin >> n;
    vector<int> f(n+1,0);
    
    for(int x = 1;x < 101;x++){
        for(int y = 1;y < 101;y++){
            for(int z = 1;z < 101;z++){
                int alina = x*x+y*y+z*z+x*y+y*z+z*x;
                
                if(alina > n)continue;
                f[alina]++;
            }
        }
    }
    
    rep(i,n)cout << f[i+1] << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:23:36: error: expected '}' at end of input
   23 |     rep(i,n)cout << f[i+1] << endl;
      |                                    ^
a.cc:8:15: note: to match this '{'
    8 | int main(void){
      |               ^
Language: C++

#include <cstdio>
int f(int n){
    int count = 0;
    for (int x = 1; x*x < n; x++){
        for (int y = 1; x*x+y*y+x*y < n; y++){
            for (int z = 1; x*x+y*y+z*z+x*y+y*z+x*z <= n; z++){
                if (x*x+y*y+z*z+x*y+y*z+x*z == n) 
					count++;
            }
        }
    }
    return cnt;
}

int main(){
    int n; scanf("%d", &n);
    for (int i = 1; i <= n; i++){
        int ans = f(i);
        printf("%d\n", ans);
    }
    return 0;
}

Compiler output:
a.cc: In function 'int f(int)':
a.cc:12:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |     return cnt;
      |            ^~~
      |            int
Language: C++

#include <iostream>
#include <iomanip>
#include <cstdio>
#include <string>
#include <queue>
#include <deque>
#include <list>
#include <vector>
#include <utility>
#include <algorithm>
#include <map>
#include <set>
#include <complex>
#include <cmath>
#include <limits>
#include <cfloat>
#include <climits>
#include <ctime>
#include <cassert>
#include <numeric>
#include <fstream>
#include <functional>
#include <bitset>

using namespace std;


#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define repr(i,n) for(int (i)=(n); (i)>=(0); (i)--)
#define SIZE(x) ((int)(x).size())
#define GCD(a, b) int gcd(int a,int b){return b?gcd(b,a%b):a;}
#define QP(a, b) int qp(int a,ll b){int ans=1;do{if(b&1)ans=1ll*ans*a%mo;a=1ll*a*a%mo;}while(b>>=1);return ans;}
#define pb(a) push_back(a)
#define mp(a,b) make_pair(a,b)
#define all(v) (v).begin(),(v).end()


template<typename T> void chmax(T &a, T b) {a = max(a, b);}
template<typename T> void chmin(T &a, T b) {a = min(a, b);}
template<typename T> void chadd(T &a, T b) {a = a + b;}
template<typename A, size_t N, typename T>
void FILL(A (&array)[N], const T &val){
    std::fill( (T*)array, (T*)(array+N), val );
}

typedef vector<int, int> vint;
typedef pair<int,int> pint;
typedef vector<pint>vpint;
typedef long long ll;

int dx[] = {0, 0, 1, -1};
int dy[] = {1, -1, 0, 0};
const ll INF = 1LL << 60;
const ll MOD = 1000000007LL;


int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int N;
    int ans = 0;
    vector<int> X(10000);
    cin >> N;
    for(int x=1; x<sqrt(n); x++){
        for(int y=1; y<sqrt(n); y++){
            for(int z=1; z<sqrt(n); z++){
                ll n = x*x + y*y + z*z + x*y + y*z + z*x;
                X[n]++;
            }
        }
    }
    for(int i=1; i<=N; i++) cout << X[i] << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:64:25: error: 'n' was not declared in this scope
   64 |     for(int x=1; x<sqrt(n); x++){
      |                         ^
Language: C++

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

int main() {
  int A;
  cin >> A;
  int count[10010];
  for(int X = 0;X < 100;X++){
    for(int Y = 0;Y < 100;Y++){
      for(int Z == 0;Z < 100;Z++){
        int U = X * X + Y * Y + Z * Z + X * Y + Y * Z + Z * X;
        if(U <= A){
          count[U]++;
        }
      }
    }
  }
  for(int i = 0;i < A;i++){
    cout << count[i] << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '==' token
   10 |       for(int Z == 0;Z < 100;Z++){
      |                ^~~
      |                ;
a.cc:10:17: error: expected primary-expression before '==' token
   10 |       for(int Z == 0;Z < 100;Z++){
      |                 ^~
a.cc:10:29: error: expected ')' before ';' token
   10 |       for(int Z == 0;Z < 100;Z++){
      |          ~                  ^
      |                             )
a.cc:10:30: error: 'Z' was not declared in this scope
   10 |       for(int Z == 0;Z < 100;Z++){
      |                              ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  int a[n]={};
  for(int i=1;i<=100;i++){
    for(int j=1;j<=100;j++){
      for(int k=1;k<=100;k++){
        int q=pow(i,2)+pow(j,2)+pow(k,2)+i*j+j*k+k*i;
        if(q<10001) a[q]++;
      }
    }
  }
  for(int i=1;i<n;i++){
   cout<<a[i]<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'pow' was not declared in this scope
   10 |         int q=pow(i,2)+pow(j,2)+pow(k,2)+i*j+j*k+k*i;
      |               ^~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
   int n;
  cin>>n;
  
  int arr[n+1];
  
  for(int i=1;i<101<;i++)
  {
    for(int j=1;j<101;<j++)
    {
      for(int k=1;k<101;k++)
      {
         int ans = i*i + j*j +k*k + i*j + j*k + k*i;
          
        if(ans>n)
          continue;
        
        arr[val]++;
      }
    }
  }
  
  for(int i=0;i<=n;i++)
    cout<<arr[i]<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected primary-expression before ';' token
   10 |   for(int i=1;i<101<;i++)
      |                     ^
a.cc:12:23: error: expected primary-expression before '<' token
   12 |     for(int j=1;j<101;<j++)
      |                       ^
a.cc:21:13: error: 'val' was not declared in this scope
   21 |         arr[val]++;
      |             ^~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
   int n;
  cin>>n;
  
  int arr[n+1];
  
  for(int i=1;i<101<;i++)
  {
    for(int j=1;j<101<j++)
    {
      for(int k=1;k<101<k++)
      {
         int ans = i*i + j*j +k*k + i*j + j*k + k*i;
          
        if(ans>n)
          continue;
        
        arr[val]++;
      }
    }
  }
  
  for(int i=0;i<=n;i++)
    cout<<arr[i]<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected primary-expression before ';' token
   10 |   for(int i=1;i<101<;i++)
      |                     ^
a.cc:12:26: error: expected ';' before ')' token
   12 |     for(int j=1;j<101<j++)
      |                          ^
      |                          ;
a.cc:14:28: error: expected ';' before ')' token
   14 |       for(int k=1;k<101<k++)
      |                            ^
      |                            ;
a.cc:21:13: error: 'val' was not declared in this scope
   21 |         arr[val]++;
      |             ^~~
Language: C

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

int W_Length(char *str){
	int length = 0;
	while(*str++ != '\0')
		length++;
	return length;
}

void swap(int *a, int *b){
  int temp;
  temp=*a;
  *a=*b;
  *b=temp;
}
//swap(&a, &b)

double deg(double theta){//deg to theta
return theta*(2*3.14159265359)/360;
}

int cmp( const void *p, const void *q ) {
    return *(int*)p - *(int*)q;
}//ちいさい順
//qsort(a,n,sizeof(int),cmp);
//char s[n][11]

int cmp_s(const void * left, const void * right)
{
	char *left_char = (char *)left;
  char *right_char = (char *)right;
  return strcmp(left_char, right_char);
}
//qsort(s,n,sizeof(s[0]),cmp_s);


int main (void)
{
	int a,b,c,n,i,j,k,count;

scanf("%d",&n);
	for(i=1;i<=n;i++){
  for(x=1;(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x)<=2*i;x--){
    for(y=1;(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x)<=2*i;y--){
      for(z=1;(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x)<=2*i;z--){
        
        if((x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x)==2*i){
        count++;
        }
    
    }
        
  }
  
  }
      
    printf("%d",count);
      
    }
  
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:46:7: error: 'x' undeclared (first use in this function)
   46 |   for(x=1;(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x)<=2*i;x--){
      |       ^
main.c:46:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:46:14: error: 'y' undeclared (first use in this function)
   46 |   for(x=1;(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x)<=2*i;x--){
      |              ^
main.c:46:26: error: 'z' undeclared (first use in this function)
   46 |   for(x=1;(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x)<=2*i;x--){
      |                          ^
Language: C++

n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(0,n,2):
   if a[i] % 2 == 1:
     ans += 1
   print(ans)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main() {
	int N;
	cin >> N;
	vector<int> f(N, 0);

	int root_n = (int)sqrt(N);

	for (int x = 1; x <= root_n; x++) {
		for (int y = 1; y <= root_n; y++) {
			for (int z = 1; z <= root_n; z++) {
				int v = x * x + y * y + z * z + x * y + y * z + z * x;
				if (v <= N) f[v - 1]++;
			}
		}
	}

	for (int i = 0; i < N; i++) cout << f[i] << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: 'sqrt' was not declared in this scope
   11 |         int root_n = (int)sqrt(N);
      |                           ^~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main() {
	int N;
	cin >> N;
	vector<int> f(N, 0);

	int root_n = (int)sqrt(N);

	for (int x = 1; x <= root_n; x++) {
		for (int y = 1; y <= root_n; y++) {
			for (int z = 1; z <= root_n; z++) {
				int v = x * x + y * y + z * z + x * y + y * z + z * x;
				if (v <= N) f[v]++;
			}
		}
	}

	for (int i = 0; i < N; i++) cout << f[i] << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: 'sqrt' was not declared in this scope
   11 |         int root_n = (int)sqrt(N);
      |                           ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n;
  vector<int >nos(n+1,0);
  for(int x=1;x<=100;x++)
    for(int y=1;y<=100;y++)
      for(int z=1;z<=100;z++)
      {
        val = x*x+y*y+z*z+x*y+x*z+y*z;
        if(val>n)continue;
        else nos[val]+=1;
      }
  for(int i=1;i<=n;i++)cout<<nos[i]<<'\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'val' was not declared in this scope
   10 |         val = x*x+y*y+z*z+x*y+x*z+y*z;
      |         ^~~
Language: C++

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

int n;
vector<int> ans;

void search(){
    for(int x=1;;++x){
        if(x*x>n) break;
        for(int y=1;;++y){
            if(x*x+y*y+x*y>n) break;
            for(z=1;;++z){
                int t=x*x+y*y+z*z+x*y+y*z+z*x;
                if(t>n) break;
                ++ans[t];
            }
        }
    }
}

int main(){
    cin>>n;
    ans.assign(n+100,0);
    
    search();

    for(int i=0;i<n;++i) cout<<ans[i+1]<<endl;
}

Compiler output:
a.cc: In function 'void search()':
a.cc:13:17: error: 'z' was not declared in this scope
   13 |             for(z=1;;++z){
      |                 ^
Language: C++

n#include <bits/stdc++.h>
#define rep(i, n) for(int i=0; i < n; i++)
#define REP(i, n, m) for(int i=n; i < m; i++)
#define reps(i, n) for(int i=1; i <= n; i++)
#define ALL(v) v.begin(), v.end()
#define rALL(v) v.rbegin(), v.rend()
#define pbs(x) push_back(x)
#define mp(x,y) make_pair(x,y)

using namespace std;
using ll=long long;

ll mod=1000000007;

const ll INF = 1LL << 60;

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}

int main(){
	int n;cin>>n;
	vector<int> ans(60000);
	reps(x,100)reps(y,100)reps(z,100){
		int t=x*x+y*y+z*z+x*y+y*z+z*x;
		ans[t]++;
	}
	reps(i,n)cout<<ans[i]<<endl;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | n#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'n' does not name a type
    1 | n#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:21:15: error: 'cin' was not declared in this scope
   21 |         int n;cin>>n;
      |               ^~~
a.cc:22:9: error: 'vector' was not declared in this scope
   22 |         vector<int> ans(60000);
      |         ^~~~~~
a.cc:22:16: error: expected primary-expression before 'int'
   22 |         vector<int> ans(60000);
      |                ^~~
a.cc:25:17: error: 'ans' was not declared in this scope
   25 |                 ans[t]++;
      |                 ^~~
a.cc:27:18: error: 'cout' was not declared in this scope
   27 |         reps(i,n)cout<<ans[i]<<endl;
      |                  ^~~~
a.cc:27:24: error: 'ans' was not declared in this scope
   27 |         reps(i,n)cout<<ans[i]<<endl;
      |                        ^~~
a.cc:27:32: error: 'endl' was not declared in this scope
   27 |         reps(i,n)cout<<ans[i]<<endl;
      |                                ^~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  vector<int> a(n+1);
  
  for(int i=1;i<102;i++)
    for(int j=1;j<102;j++)
      for(int k=1;k<102;k++){
        s = i*i + j*j + k*k + i*j + j*k + k*i;
        if(s<n+1)	a.at(s);
      }
  
  for(int i=1;i<n+1;i++)
    cout << a.at(i) << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 's' was not declared in this scope
   12 |         s = i*i + j*j + k*k + i*j + j*k + k*i;
      |         ^
Language: C++

#include <stdio.h>
#include <math.h>
#include <iostream>
using namespace std;
int keisan(int x){
  int z,j=0,a=0;
  z = (int) ceil(sqrt((double) x));
  if(z < 3) return a;
  while(((z+j)^2)/3 < x){
    for()
}

int main(void){
  int n;
  cin >> n;
  for(int i=1;i < n+1;i++){
    cout << keisan(i);
  }
}


Compiler output:
a.cc: In function 'int keisan(int)':
a.cc:10:9: error: expected primary-expression before ')' token
   10 |     for()
      |         ^
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
a.cc:10:10: error: expected ';' before '}' token
   10 |     for()
      |          ^
      |          ;
   11 | }
      | ~         
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
a.cc:10:10: error: expected ')' before '}' token
   10 |     for()
      |        ~ ^
      |          )
   11 | }
      | ~         
a.cc:11:1: error: expected primary-expression before '}' token
   11 | }
      | ^
a.cc:13:15: error: a function-definition is not allowed here before '{' token
   13 | int main(void){
      |               ^
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:5:18: note: to match this '{'
    5 | int keisan(int x){
      |                  ^
a.cc:19:2: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      |  ^
Language: C

#include <stdio.h>

int main(){
  int N,A,B,C,S;
  scanf("%d",&N);
  for(int i=1;i<=N;i++){
    S=0;
    for(int x=1;i<=100;x++){
      A=x*x;
      if(A>i) break;
      for(int y=1;y<=100;y++){
        B=y*y+x*y;
        if(A+B>i) break;
        for(int z=1;z<=100;z++){
          C=z*z+y*z+z*x;
          if(A+B+C>i) break;
          if(A+B+C==i){
            S++;
            break;
          }
        }
      }
    }
    printf("%d\n",S);
  }

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

import sys
input = sys.stdin.readline

N=int(input())
for i in range(1,N+1):
  cnt=0
  listx=list(range(1,101-2))
  for x in listx:
    for y in range(1,101-x+1):
      for z in range(1,101-x-y+1):
        if i==x**2+y**2+z**2+x*y+y*z+z*x:
          cnt+=1
  print(cnt)


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C

#include<stdio.h>
#define EXIT_FAILURE 1
   int main(){
       int x,y,z;
       int n;
       int l;
       int cpt,i=1;
            scanf("%d",&n);
     if(n==0)
        return exit(EXIT_FAILURE);
         while(i<n)  {
             cpt=0;
          for(x=1;x<10;x++){
            for(y=1;y<10;y++){
               for(z=1;z<10;z++){
                    l=x*x+y*y+z*z+x*y+z*(x+y);
                      if(l==i)cpt++;
               }
            } }
            printf("%d\n",cpt);
           i++;
         }
          
          
         
   }

  

Compiler output:
main.c: In function 'main':
main.c:10:16: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   10 |         return exit(EXIT_FAILURE);
      |                ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include<stdio.h>
  +++ |+#include <stdlib.h>
    2 | #define EXIT_FAILURE 1
main.c:10:16: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   10 |         return exit(EXIT_FAILURE);
      |                ^~~~
main.c:10:16: note: include '<stdlib.h>' or provide a declaration of 'exit'
main.c:10:16: error: void value not ignored as it ought to be
   10 |         return exit(EXIT_FAILURE);
      |                ^~~~~~~~~~~~~~~~~~
Language: C

#include<stdio.h>


    void square(int n){
         n=n*n;
    }
   int main(){
       int x,y,z;
       int n;
       int l;
       int cpt,i=1;
            scanf("%d",&n);
         while(i<n)  {
             cpt=0;
          for(x=1;x<100;x++){
            for(y=1;y<100;y++){
               for(z=1;z<100;z++){
                    l=x*x+y*y+z*z+x*y+z*(x+y);
                      if(l==i)cpt++;
               }
            } }
            printf("%d\n",cpt);
           i++;
         }

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

#include<stdio.h>

   int main(){
       int x,y,z;
       int n;
       int l;
       int cpt,i=1;
            scanf("%d",&n);
         while(i<n)  {
             cpt=0;
          for(x=1;x<1000;x++){
            for(y=1;y<1000;y++){
               for(z=1;z<1000;z++){
                    l=x*x+y*y+z*z+x*y+z*(x+y);
                      if(l==i)cpt++;
               }
            } }
            printf("%d\n",cpt);
           i++;
         }

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


#include <bits/stdc++.h> 
using namespace std; 
int triples(int n)
{
    int count[n+1]={0};
    
    // Intializing all the items in array as zero.
    //memset(count,0,n+1);
    
    for(int x=1;x<101;x++)
    {
        for(int y=1;y<101;y++)
        {
            for(int z=1;z<101;z++)
            {
                long int val=(x*x)+(y*y)+(z*z)+(x*y)+(y*z)+(z*x);
                
                if(val>n)
                continue;
                
                count[val]++;
            }
        }
    }
    
    for(int i=1;i<=n;i++)
    cout<<count[i]<<endl;
    
    return ;
}
//Driver function
int main()
{
    
    int z ;
    cin>>z;
    
    triples(z);
    
    return 0;
}

Compiler output:
a.cc: In function 'int triples(int)':
a.cc:30:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   30 |     return ;
      |     ^~~~~~
Language: C++

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

int main(){
  ll n;
  cin>>n;
 vector<ll>vec(n,0);
  for(int x=1;x<=101;x++){
    for(int y=1;y<=101;y++){
      for(int z=1;z<=101;z++){
        if(v<1010){
          vec[x*x+y*y+z*z+x*y+y*z+z*x]++;
        }
      }
    }
  }
  for(int i=0;i<=n;i++){
    cout<<vec[i+1]<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'v' was not declared in this scope
   13 |         if(v<1010){
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long
int main(){
  ll n;cin>>n;int a[10001]={0};
  for(int i=1;i*i<=10000;i++){
	for(int j=1;j*j<=10000;j++){
	  for(int k=1;k*k<=10000;k++){
	  	ll x=i*i+j*j+k*k+i*j+j*k+k*i;
	  	if(x<=10000)a[x]++;
      }
    }
  }
  for(int i=1;i<=n;i++){
    cout<<a[i]<<endl;
  }
}


Compiler output:
a.cc:4:4: error: expected ';' before 'main'
    4 | int main(){
      |    ^~~~~
      |    ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long
int main(){
	ll n;cin>>n;int a[10001]={0};
  for(int i=1;i*i<=10000;i++){
	for(int j=1;j*j<=10000;j++){
	  for(int k=1;k*k<=10000;k++){
	  	ll x=i*i+j*j+k*k+i*j+j*k+k*i;
	  	if(x<=10000)a[x]++;
      }
    }
  }
  for(int i=1;i<=n;i++){
    cout<<a[i]<<endl;
  }
}


Compiler output:
a.cc:4:4: error: expected ';' before 'main'
    4 | int main(){
      |    ^~~~~
      |    ;
Language: C++

// AT_Contest_11.cpp : 定義主控台應用程式的進入點。
//

#include "stdafx.h"
#include<iostream>
using namespace std;

void  go(int a, int b, int c, int i, int* count)
{

	if (a*a + b*b + c*c + a*b + b*c + a*c <= i)
	{
		if (a*a + b*b + c*c + a*b + b*c + a*c == i)
		{
			if (a == b&&a == c&&b == c)
			{
				*count += 1;

				//cout << a << "," << b << "," << c << " ";
			}
			else if (b == c&&b != a)
			{
				*count += 3;

				//cout << "沒有嗎"<<count << endl;
				//cout << a << "," << b << "," << c << " ";
			}
			else if (a == b&&a != c)
			{
				*count += 3;
			}
			//cout << endl << "幹" << count;
			//cout << a << "," << b << "," << c << " ";
			go(a + 1, b, c, i, count);
			go(a + 1, b + 1, c, i, count);
			go(a + 1, b + 1, c + 1, i, count);
		}
		else
		{
			go(a + 1, b, c, i, count);
			go(a + 1, b + 1, c, i, count);
			go(a + 1, b + 1, c + 1, i, count);
		}
	}


}

int main()
{

	int n = 0;
	cin.tie(NULL);
	ios_base::sync_with_stdio(false);
	cin >> n;
	int x = 1, y = 1, z = 1;
	for (int i = 1; i <= n; i++)
	{
		int count = 0;
		go(x, y, z, i, &count);
		cout << count << '\n';
	}

	return 0;
}



Compiler output:
a.cc:4:10: fatal error: stdafx.h: No such file or directory
    4 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int func(int n){
  int cnt=0;
  for(int i=1;i<=sqrt(n);i++){
    for(int j=1;j<=sqrt(n);j++){
      for(int k=1;k<=sqrt(n);k++){
        if(i*i +j*j +k*k +i*j +j*k +k*i == n) cnt++;
      }
    }
  }  
  
  return cnt;
}

int main(){
  int n;
  cin >> n;
  for(int i=1;i=<n;i++){
    cout << func(n) << endl;
  }
  
  return 0;
}  


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

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

int func(int n){
  int cnt=0;
  for(int i=1;i<=sqrt(n);i++){
    for(int j=1;j<=sqrt(n);j++){
      for(int k=1;k<=sqrt(n);k++){
        if(i*i +j*j +k*k +i*j +j*k +k*i == n) cnt++;
      }
    }
  }  
  
  return cnt;
}

int main(){
  int n
  cin >> n;
  for(int i=1;i=<n;i++){
    cout << func(n) << endl;
  }
  
  return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:20:3: error: expected initializer before 'cin'
   20 |   cin >> n;
      |   ^~~
a.cc:21:17: error: expected primary-expression before '<' token
   21 |   for(int i=1;i=<n;i++){
      |                 ^
a.cc:21:18: error: 'n' was not declared in this scope
   21 |   for(int i=1;i=<n;i++){
      |                  ^
Language: C

#include <stdio.h>
#include<math.h>
 
int main()
{
long long int N,l;
int a[100001]={0};
scanf("%lld",&N);
for(int i=1;i<=N;i++)
{
    for(int j=1;j<=N;j++)
    {
        for(int k=1;k<=N;k++)
        {
            l=i*i+j*j+k*k+i*j+i*k+j*k;
          a[l]++;
        }
    }
}
for(int i=0;i<N;i++)
{
printf("%d\n",a[i+1]);
}
return 0;

Compiler output:
main.c: In function 'main':
main.c:24:1: error: expected declaration or statement at end of input
   24 | return 0;
      | ^~~~~~
Language: C

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

int main()
{
long long int N,l;
int a[100001]={0};
scanf("%lld",&N);
for(int i=1;i<=N;i++)
{
    for(int j=1;j<=N;j++)
    {
        for(int k=1;k<=N;k++)
        {
            l=i*i+j*j+k*k+i*j+i*k+j*k;
          a[l]++;
        }
    }
}
for(i=0;i<N;i++)
{
printf("%d\n",a[i+1]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:5: error: 'i' undeclared (first use in this function)
   20 | for(i=0;i<N;i++)
      |     ^
main.c:20:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main()
{
long long int N,i,j,k,l;
int a[100001]={0};
scanf("%lld",&N);
for(i=1;i<N;i++)
{
    for(j=1;j=<N;j++)
    {
        for(k=1;k=<N;k++)
        {
            l=i*i+j*j+k*k+i*j+i*k+j*k;
          a[l]++;
        }
    }
}
for(i=0;i<N;i++)
{
printf("%lld\n",a[i+1]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:15: error: expected expression before '<' token
    9 |     for(j=1;j=<N;j++)
      |               ^
main.c:11:19: error: expected expression before '<' token
   11 |         for(k=1;k=<N;k++)
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;cin>>n;vector<int>a(n);
  for(int x=1;x<100;x++){
    for(int y=1;y<100;y++){
      for(int z=1;z<100;z++){
        s=(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x);
        if(s%2==0 && s/2>0 && s/2<n+1){
          a[s/2]++;
        }
      }
    }
  }
  for(int i=1;i<=n;i++){
    cout<<a[i-1]<<endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 's' was not declared in this scope
    8 |         s=(x+y)*(x+y)+(y+z)*(y+z)+(z+x)*(z+x);
      |         ^
Language: C

#include<math.h>
#include <stdio.h>
 
long int n[120000]={0};
int main()
{
  int i,N,x,y,z,temp;
 
scanf("%lld",&N);
for(x=1;x<sqrt(N);x++)
{
    for(y=1;y<=sqrt(N);y++)
    {
        for(z=1;z<=sqrt(N);z++)
        {
        temp = x*x + y*y + z*z + x*y + y*z + z*x;
        n[temp]++;
        }
    }
}
for(i=1;i<=N;i++)
{
printf("%ld\n",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:16: error: 'a' undeclared (first use in this function)
   23 | printf("%ld\n",a[i]);
      |                ^
main.c:23:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<math.h>
#include <stdio.h>
 
long int n[120000]={0};
int main()
{
  int N,x,y,z,temp;

scanf("%lld",&N);
for(x=1;x<sqrt(N);x++)
{
    for(y=1;y<=sqrt(N);y++)
    {
        for(z=1;z<=sqrt(N);z++)
        {
        temp = x*x + y*y + z*z + x*y + y*z + z*x;
        n[temp]++;
        }
    }
}
for(i=1;i<=N;i++)
{
printf("%ld\n",a[i]);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:5: error: 'i' undeclared (first use in this function)
   21 | for(i=1;i<=N;i++)
      |     ^
main.c:21:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:16: error: 'a' undeclared (first use in this function)
   23 | printf("%ld\n",a[i]);
      |                ^
Language: C

#include <stdio.h>
int main()
{
long long int N,i,j,k;
int a[10001]={0};
scanf("%lld",&N);
for(i=1;i<100;i++)
{
    for(j=1;j<=100;j++)
    {
        for(k=1;k<=100;k++)
        {
          a[i*i+j*j+k*k+i*j+i*k+j*k]++;
          }
        }
    }
}
for(i=1;i<=N;i++)
{
printf("%d\n",a[i]);
}
return 0;
}

Compiler output:
main.c:18:1: error: expected identifier or '(' before 'for'
   18 | for(i=1;i<=N;i++)
      | ^~~
main.c:18:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
   18 | for(i=1;i<=N;i++)
      |          ^~
main.c:18:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
   18 | for(i=1;i<=N;i++)
      |               ^~
main.c:22:1: error: expected identifier or '(' before 'return'
   22 | return 0;
      | ^~~~~~
main.c:23:1: error: expected identifier or '(' before '}' token
   23 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define el "\n"
vector<int> v(1(10050, 0);

void solution() {
    for (int x=1; x<=60; ++x) {
        for (int y=1; y <= 60; ++y) {
            for (int z=1; z<= 60; ++z) {
                int sol = x*x + y*y + z*z + z*x + x*y + x*z;
                if (sol < (10050)
                    v[sol]++;
            }
        }
    }
}
  
int main() {
    solution();
    int n; cin >> n; 
    for (int i=1; i <= n; ++i) {
        cout << v[i] << el;
    }

    return 0;
}



Compiler output:
a.cc:4:16: error: expression cannot be used as a function
    4 | vector<int> v(1(10050, 0);
      |               ~^~~~~~~~~~
a.cc: In function 'void solution()':
a.cc:11:34: error: expected ';' before 'v'
   11 |                 if (sol < (10050)
      |                                  ^
      |                                  ;
   12 |                     v[sol]++;
      |                     ~             
a.cc:13:13: error: expected primary-expression before '}' token
   13 |             }
      |             ^
a.cc:12:30: error: expected ')' before '}' token
   12 |                     v[sol]++;
      |                              ^
      |                              )
   13 |             }
      |             ~                 
a.cc:11:20: note: to match this '('
   11 |                 if (sol < (10050)
      |                    ^
a.cc:13:13: error: expected primary-expression before '}' token
   13 |             }
      |             ^
Language: C++

#include<bits/stdc++.h>

#define ll long long
#define ull unsigned long long

#define pii pair < int, int >
#define pll pair < ll, ll >
#define pci pair < char, int >
#define psi pair < string, int >

#define vi vector < int >
#define vll vector < ll >
#define vs vector < string >
#define vc vector < char >
#define pvi vector < pii >
#define pvll vector < pll >

#define pb push_back

#define fast ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)

using namespace std;

const int maxn = 1e5 + 5;
const int mod = 1e9 + 7;

int main()
{
    fast;

    int n;

    cin >> n;

    int a[n + 5], tmp;

    memset(a, 0, sizeof(a));

    for(int i = 1; ; i++){
        int tmp1 = (i * i * 3);

        if(i == 1) tmp1 += 8;
        else tmp1 += (1 + (2 * i));+

        if(tmp1 > n) break;

        for(int j = 1; ; j++){
            if(i == j) continue;

            tmp = (i * i * 3) + (j * j) + (2 * i * j);

            if(tmp > n) break;

            a[tmp] = 3;
        }
    }

    for(int i = 1; ; i++){
        tmp = (i * i * 6);

        if(tmp > n) break;

        a[tmp] = 1;
    }

    for(int i = 1; ; i++){
        int tmp2 = (i * i) + ((i + 1) * (i + 1)) + ((i + 2) * (i + 2)) + (i * (i + 1)) + (i * (i + 2)) + ((i + 1) * (i + 2));

        if(tmp2 > n) break;

        for(int j = i + 1; ; j++){
            int tmp1 = (i * i) + (j * j) + (i * j) + ((j + 1) * (j + 1)) + (i * (j + 1)) + (j * (j + 1));

            if(tmp1 > n) break;

            for(int k = j + 1; ; j++){
                tmp = (i * i) + (j * j) + (k * k) + (i * j) + (i * k) + (j * k);

                if(tmp > n) break;

                a[tmp] = 6;
            }
        }
    }

    for(int i = 1; i <= n; i++) cout << a[i] << endl;

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:45:9: error: expected primary-expression before 'if'
   45 |         if(tmp1 > n) break;
      |         ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long;
int main(){ll n;cin>>n;int a[10001]={0};for(int i=1;i*i<=10050;i++){for(int j=1;j*j<=10050;j++){for(int k=1;k*k<=10050;k++){ll x=i*i+j*j+k*k+i*j+j*k+k*i;if(x<=10050){a[x]++;}}}}for(int i=1;i<=n;i++){cout<<a[i]<<endl;}}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:4:12: note: in expansion of macro 'll'
    4 | int main(){ll n;cin>>n;int a[10001]={0};for(int i=1;i*i<=10050;i++){for(int j=1;j*j<=10050;j++){for(int k=1;k*k<=10050;k++){ll x=i*i+j*j+k*k+i*j+j*k+k*i;if(x<=10050){a[x]++;}}}}for(int i=1;i<=n;i++){cout<<a[i]<<endl;}}
      |            ^~
a.cc:4:15: error: 'n' was not declared in this scope; did you mean 'yn'?
    4 | int main(){ll n;cin>>n;int a[10001]={0};for(int i=1;i*i<=10050;i++){for(int j=1;j*j<=10050;j++){for(int k=1;k*k<=10050;k++){ll x=i*i+j*j+k*k+i*j+j*k+k*i;if(x<=10050){a[x]++;}}}}for(int i=1;i<=n;i++){cout<<a[i]<<endl;}}
      |               ^
      |               yn
a.cc:3:17: error: declaration does not declare anything [-fpermissive]
    3 | #define ll long long;
      |                 ^~~~
a.cc:4:125: note: in expansion of macro 'll'
    4 | int main(){ll n;cin>>n;int a[10001]={0};for(int i=1;i*i<=10050;i++){for(int j=1;j*j<=10050;j++){for(int k=1;k*k<=10050;k++){ll x=i*i+j*j+k*k+i*j+j*k+k*i;if(x<=10050){a[x]++;}}}}for(int i=1;i<=n;i++){cout<<a[i]<<endl;}}
      |                                                                                                                             ^~
a.cc:4:128: error: 'x' was not declared in this scope
    4 | int main(){ll n;cin>>n;int a[10001]={0};for(int i=1;i*i<=10050;i++){for(int j=1;j*j<=10050;j++){for(int k=1;k*k<=10050;k++){ll x=i*i+j*j+k*k+i*j+j*k+k*i;if(x<=10050){a[x]++;}}}}for(int i=1;i<=n;i++){cout<<a[i]<<endl;}}
      |                                                                                                                                ^
Language: Java

package aising;
import java.util.Scanner;
public class C {
	
	static int triplets(int x){
	    int cnt = 0;
	    for(int i = 1; i <= (int)(1e2); i++){
	        for(int j = 1; j <= (int)(1e2); j++){
	            for(int k = 1; k <= (int)(1e2); k++){
	                if(i * i + j * j + k * k + i * j + j * k + k * i > x)break;
	                if(i * i + j * j + k * k + i * j + j * k + k * i == x)cnt++;
	            }
	        }
	    }
	    return cnt;
	}
	 
	 

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int n = stdIn.nextInt();
		 
		    for(int i = 1; i <= n; i++){
		        System.out.println(triplets(i));
		 
		    }
		 
		 
		
	}

}


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


#include <bits/stdc++.h>
using namespace std;
#define int long long
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
#define REP2(i, n) for (int i = 1; i <= (int)(n); i++)
#define FOR(i, m, n) for (int i = m; i<n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define REVE(x) reverse(x.begin(), x.end())
#define ALL(x) (x).begin(), (x).end()
#define SUM(x) accumulate(x.begin(), x.end(),0);
#define vint(v,n) vector<int> v(n); REP(i,n) scanf("%lld", &v[i]);
#define vstr(v,n) vector<string> v(n); REP(i,n) scanf("%lld", &v[i]);
int k=0,n=0, m=0, l=0,r=0,a=0, b=0, c=0, d=0,e=0,ans=0,ans2=0,x=0,y=0;
string s,t,S;
signed main() {
  ios_base::sync_with_stdio(false);
    cin >> n;
    vector<LL>A(n+1)
        REP2(x,100){
            REP2(y,100){
                REP2(z,100){
                    if((x*(x+y)+y*(y+z)+z*(z+x))<=i){
                        A[i]++;
                    }
                }
            }
        }
       REP(i,n) cout <<A[i]<<endl;

              
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'LL' was not declared in this scope; did you mean 'ALL'?
   19 |     vector<LL>A(n+1)
      |            ^~
      |            ALL
a.cc:19:14: error: template argument 1 is invalid
   19 |     vector<LL>A(n+1)
      |              ^
a.cc:19:14: error: template argument 2 is invalid
a.cc:6:20: error: expected ',' or ';' before 'for'
    6 | #define REP2(i, n) for (int i = 1; i <= (int)(n); i++)
      |                    ^~~
a.cc:20:9: note: in expansion of macro 'REP2'
   20 |         REP2(x,100){
      |         ^~~~
a.cc:6:54: error: expected ';' before ')' token
    6 | #define REP2(i, n) for (int i = 1; i <= (int)(n); i++)
      |                                                      ^
a.cc:20:9: note: in expansion of macro 'REP2'
   20 |         REP2(x,100){
      |         ^~~~
a.cc:29:25: error: invalid types 'int[long long int]' for array subscript
   29 |        REP(i,n) cout <<A[i]<<endl;
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  int ans[n]={0};
  int q=sqrt(n);
  for(int i=1;i<q;i++){
    for(int j=1;j<q;j++){
      for(int k=1;k<q;k++){
        v=i*i+j*j+k*k+i*j+j*k+k*i;
        if(v<n)ans[v]+=1;
      }
    }
  }
  for(int i=0;i<n;i++){
    cout << ans[i] << endl;
  }
}
          

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'v' was not declared in this scope
   11 |         v=i*i+j*j+k*k+i*j+j*k+k*i;
      |         ^
Language: C++

#ifdef _MSC_VER
#include <__msvc_all_public_headers.hpp>
#undef min
#undef max
#else
#define NDEBUG
#include <bits/stdc++.h>
#endif

using namespace std;
using large = long long;

#define eval() (x * x + y * y + z * z + x * y + y * z + z * x)

static large count(large n) {
    auto cnt = 0LL;
    for (auto x = 1LL; x <= 100; ++x) {
        for (auto y = 1LL; y <= 100; ++y) {
            auto m = x * x + y * y + x * y;
            if (m >= n)
                goto Exit;

            for (auto z = 1LL; z <= 100; ++z) {
                auto k = eval();
                if (k >= n) {
                    cnt += (k == n);
                    break;
                }
            }
        }
    }
    return cnt;
}

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

    auto a = string{};
    for (auto k = 1; k <= n; ++k) {
        a += to_string(count(k)) + "\n";
    }

    cout << a;
    return 0;
}


Compiler output:
a.cc: In function 'large count(large)':
a.cc:21:22: error: label 'Exit' used but not defined
   21 |                 goto Exit;
      |                      ^~~~
Language: C++

#ifdef _MSC_VER
#include <__msvc_all_public_headers.hpp>
#undef min
#undef max
#else
#define NDEBUG
#include <bits/stdc++.h>
#endif

using namespace std;
using large = long long;

#define eval() (x * x + y * y + z * z + x * y + y * z + z * x)

static large count(large n) {
    auto cnt = 0LL;
    for (auto x = 1lL; x <= 100; ++x) {
        for (auto y = 1LL; y <= 100; ++y) {
            for (auto z = 1LL; z <= 100; ++z) {
                if (eval() == n)
                    ++cnt;
            }
        }
    }
    return cnt;
}

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

    auto a = string{};
    for (auto k = 1; k <= n; ++k) {
        a += to_string(count(k)) + "\n";
    }

    cout << a;
    return 0;
}


Compiler output:
a.cc: In function 'large count(large)':
a.cc:17:19: error: unable to find numeric literal operator 'operator""lL'
   17 |     for (auto x = 1lL; x <= 100; ++x) {
      |                   ^~~
Language: Java

import java.util.Scanner;
public class MainC {
 
	public static void main(String[] args) {
    	Scanner scan = new Scanner(System.in);
    	int n = scan.nextInt();
    	int[] multi = new int[10000];
    	
    	for(int x=1;x<100;x++) {
    		for(int y=1;y<100;y++) {
    			for(int z=1;z<100;z++) {
    				int t = (x*x+y*y+z*z+x*y+y*z+z*x); 
    					multi[t]++;
   						
    			}
    		}
    	}
    	for(int i=1;i<=n;i++) {
    		System.out.println(multi[i]);
    	}
   	}
     
}

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

#include <iostream>
#include <vector>
#include <map>
#include <stack>
#include <queue>
#include <bitset>
#include <algorithm>
#include <sstream>
#include <limits.h>
using namespace std;
 
int main()
{
    int n;
    cin >> n;
    long long int cnt = 0;

    std::map<int, int> mp;
    //for(int i=0; i<n; i++){
        cnt = 0;
        //cout << "### " << i+1 << endl;
        for(int x=1; x<=n; x++){
            long long int x2 = x*x;
            if(x2 > n) continue;
            for(int y=1; y<=101; y++){
                /ong long int y2 = y*y;
                //long long int xy = x*y;
                //long long int num = x2+y2+xy;
                //if(num+3 > n) continue;
                for(int z=1; z<=101; z++){
                    
                    long long int z2 = z*z;
                    //long long int xz = x*z;
                    //long long int yz = y*z;
                    long long int num = x2 + y2 + z2 + x*y + x*z + y*z;
                    mp[num]++;
                    /*
                    if(num == i+1){
                        //cout << x << ", " << y << ", " << z << endl;
                        //cout << num << ":" << num+z2+xz+yz << endl;
                        cnt++;
                    }
                    */
                }
            }
        }
        //cout << cnt << endl;
    //}
    for(int i=1; i<=n; i++){
        cout << mp[i] << endl;
    }
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:17: error: expected primary-expression before '/' token
   26 |                 /ong long int y2 = y*y;
      |                 ^
a.cc:26:18: error: 'ong' was not declared in this scope; did you mean 'long'?
   26 |                 /ong long int y2 = y*y;
      |                  ^~~
      |                  long
a.cc:35:46: error: 'y2' was not declared in this scope; did you mean 'z2'?
   35 |                     long long int num = x2 + y2 + z2 + x*y + x*z + y*z;
      |                                              ^~
      |                                              z2
Language: Java

import java.io.PrintWriter;
import java.util.Scanner;

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

		int N = sc.nextInt();

		int[] ans = new int[N];

		for(int i=1; i<=N; i++) {
			for(int j=1; j<=N; j++) {
				for(int k=1; k<=N; k++) {
					int n = i*i+j*j+k*k+i*j+j*k+k*i;
					if(n<=N)
						ans[n-1]++;
				}
			}
		}
		for(int i=0; i<N; i++)
			pw.println(ans[i]);

		sc.close();
		pw.close();
	}
}

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

import math
n = int(input())

v = [0]*(100000)

for x in range(101):
  for y in range(101):
    for z in range(101):
      v[x*x+y*y+z*z+x*y+y*z+z*x] += 1

for i in range(n):
  print(v[i+1])



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

N = int(input())

V = [0]*(100000)

for x in range(101):
  for y in range(101):
    for z in range(101):
      V[x*x+y*y+z*z+x*y+y*z+z*x] += 1

for i in range(N):
  print(V[i+1])



Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

N = int(input())

V = [0]*(N+1)

for x in range(101):
  for y in range(101):
    for z in range(101):
      V[x*x+y*y+z*z+x*y+y*z+z*x] += 1

for i in range(N):
  print(V[i+1])



Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

N = int(input())

V = [0]*N+1

for x in range(101):
  for y in range(101):
    for z in range(100):
      V[x*x+y*y+z*z+x*y+y*z+z*x] += 1

for i in range(N):
  print(V[i+1])



Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

N = int(input())

V = [0]*N+1

for x in range(101):
  for y in range(101):
    for z in range(100):
      v[x*x+y*y+z*z+x*y+y*z+z*x] += 1

for i in range(N):
  print(v[i+1])



Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: Java

import java.util.*;
import java.math.*;
 
 
public class Hack{
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        int N = in.nextInt();
         
        
 
        for(int n = 1; n <= N ; n++){
        int x = 0;
        int y = 0;
        int z = 0;
            for(int i = 1; i < (int)Math.sqrt(n) ; i++){
            for(int j = 1; j <(int) Math.sqrt(n) ; j++){
                for(int k = 1; k <= (int)Math.sqrt(n) ; k++){
                    if(((i*i)+(j*j)+(k*k)+(i*j)+(i*k)+(j*k)) == n){
                        x = i;
                        y = j;
                        z = k;
                        i = j = k = n;
                    }
 
                  }
             }
        }
 
         if(x <= 0 || y <= 0 || z <= 0)
            System.out.println(0);
        else
        if(x == y && y == z)
            System.out.println(1);
        else
        if(x==y || y == z || x == z)
            System.out.println(3);
        else
          	System.out.println(6);
        
        
       // System.out.println(" "+ x + " "+ y + " " + z + "--->"+n);
       
        }
        
    }
}

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

import java.io.PrintWriter;
import java.util.Scanner;

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

		int N = sc.nextInt();

		int[] ans = new int[N];

		for(int i=1; i*i<=N; i++) {
			for(int j=1; j*j<=N; j++) {
				for(int k=1; k*k<=N; k++) {
					int n = i*i+j*j+k*k+i*j+j*k+k*i;
					if(n<=N)
						ans[n-1]++;
				}
			}
		}
		for(int i=0; i<N; i++)
			pw.println(ans[i]);

		sc.close();
		pw.close();
	}
}

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