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

#include<bits/stdc++.h>
using namespace std;
int solve(int* n){
  int count=0;
  for(int i=1;i*i<=n;i++){
    for(int j=1;j*j<=n;j++){
    	for(int k=1;k*k<=n;k++){
          if((i+j+k)*(i+j+k)-(i*j + i*k + j*k) == n){
            count++;
          }
        }
    }
  }
  return count;
}
int main(){
  int n=0;
  cin>>n;
  for(int i=1;i<=n;i++){
  cout<<solve(&n)<<'\n';
  }
  return 0;
}

Compiler output:
a.cc: In function 'int solve(int*)':
a.cc:5:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    5 |   for(int i=1;i*i<=n;i++){
      |               ~~~^~~
a.cc:6:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    6 |     for(int j=1;j*j<=n;j++){
      |                 ~~~^~~
a.cc:7:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         for(int k=1;k*k<=n;k++){
      |                     ~~~^~~
a.cc:8:48: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |           if((i+j+k)*(i+j+k)-(i*j + i*k + j*k) == n){
      |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
Language: C++

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

int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++){
    int cnt = 0;
    for (int x = 1; x <= int(sqrt(i)); x++){
      for (int y = 1; y <= x; y++) {
        for (int z = 1; z <= y; z++) {
          if ((x * x + y * y + z * z + x * y + x * z + y * z) == i) {
            if(x == y && y == z) {
              cnt ++;
            } else{
              cnt += 3;
            }
          }
        }
      }
    }
    printf(cnt);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'sqrt' was not declared in this scope
   10 |     for (int x = 1; x <= int(sqrt(i)); x++){
      |                              ^~~~
a.cc:23:12: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   23 |     printf(cnt);
      |            ^~~
      |            |
      |            int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: C++

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

int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++){
    int cnt = 0;
    for (int x = 1; x <= int(sqrt(i)); x++){
      for (int y = 1; y <= x; y++) {
        for (int z = 1; z <= y; z++) {
          if ((x * x + y * y + z * z + x * y + x * z + y * z) == i) {
            if(x == y && y == z) {
              cnt ++;
            } else{
              cnt += 3;
            }
          }
        }
      }
    }
    print(cnt);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'sqrt' was not declared in this scope
   10 |     for (int x = 1; x <= int(sqrt(i)); x++){
      |                              ^~~~
a.cc:23:5: error: 'print' was not declared in this scope; did you mean 'printf'?
   23 |     print(cnt);
      |     ^~~~~
      |     printf
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,c=0;
  cin>>n;
  arr[n];
  for(int x=1;x<=n;x++){
      for(int i=1;i<=n;i++){
            for(int j=1;j<=n;j++){
                    for(int k=1;k<=n;k++){
                             if(i*i+j*j+k*k+i*j+k*j+i*k==x){
                                        c++;
                             }
                    }
            }arrr[x]=c;
      } else
        arr[x]=0;
  }for(int x=1;x<=n;x++){
    cout<<arr[x]<<endl;
  }return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'arr' was not declared in this scope
    6 |   arr[n];
      |   ^~~
a.cc:15:14: error: 'arrr' was not declared in this scope
   15 |             }arrr[x]=c;
      |              ^~~~
a.cc:16:9: error: 'else' without a previous 'if'
   16 |       } else
      |         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   }for(i=0;i<n;i++){
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  int x,y,z;
  for(int i=1;i<=n;i++){
    for(int j=1;j<=n;j++){
      for(int k=1;k<=n;k++){
        if(i*i+j*j+k*k+i*j+j*k+k*i==n)
          c++;
      }
    }
  }cout<<c;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'c' was not declared in this scope
   11 |           c++;
      |           ^
a.cc:14:10: error: 'c' was not declared in this scope
   14 |   }cout<<c;
      |          ^
Language: C++

#include<iostream>

using namespace std;

int main(){
  int x;
  int y;
  int z;
  int N_MAX = 10050;
  
  int[] arr[N_MAX];
  for(int i = 0; i < N_MAX; i++){
    int cntr = 0;
    for(x = 1; x < 105; x++){
      for(y = 1; y < 105; y++){
        for(z = 1; z < 105; z++){
          if(x*x + y*y + z*z + x*y + y*z + z*z == i){
            cntr++;
          }
        }
      }
    }
    arr[i] = cntr;
  }
  int N;
  cin >> N;
  for(int idx = 1; idx <= N; idx++){
  cout << arr[idx] << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: structured binding declaration cannot have type 'int'
   11 |   int[] arr[N_MAX];
      |      ^~
a.cc:11:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:6: error: empty structured binding declaration
a.cc:11:9: error: expected initializer before 'arr'
   11 |   int[] arr[N_MAX];
      |         ^~~
a.cc:23:5: error: 'arr' was not declared in this scope
   23 |     arr[i] = cntr;
      |     ^~~
a.cc:28:11: error: 'arr' was not declared in this scope
   28 |   cout << arr[idx] << endl;
      |           ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int         long long
#define mp          make_pair
#define pb          push_back
#define pii         pair<int,int>
#define vi          vector<int>
// #define vb          vector<bool>
// #define vc          vector<char>
#define vii         vector<pii>
//#define mi          map<int,int>
//#define mii         map<pii,int>
#define all(a)      (a).begin(),(a).end()
#define F           first
#define S           second
#define sz(x)       (int)x.size()
// #define ub(x)       upper_bound(x)
// #define lb(x)       lower_bound(x)
#define endl        '\n'
#define file        freopen("b1.in","r",stdin);freopen("output.txt","w",stdout)
#define fastio      ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
// #define N            1e5+5
#define PRIME           1000000007
#define MAX         50000
#define mem0(a)     memset(a,0,sizeof(a))
#define prec        cout<<std::setprecision(9)<<std::fixed
#define forn(i,a,b)  for(int i=a;i<b;i++)
#define pi          3.14159265358979323
int i,j,k;
// int n;
// const int N=1e6+5;
// vector<bool> prime(N);
// void sieve(){
//     for(int i=0;i<=N;i++)prime[i]=true;
//     prime[0]=prime[1]=false;
//     for(int i=2;i*i<=N;i++){
//         if(prime[i] and i*i<=N){
//             for(int j=i*i;j<=N;j+=i){
//                 prime[j]=false;
//             }
//         }
//     }
// }
// const bool cmp(pii a,pii b){
//     return a.F-a.S>b.F-b.S;
// }
int N=1e4+5;
int ans[N];
void f(){
    for(i=1;i<=sqrt(105);i++){
        for(j=1;j<=sqrt(105);j++){
            for(k=1;k<=sqrt(105);k++){
                int v=i*i+j*j+k*k+i*j+j*k+k*i;
                if(v<N)ans[v]++;
            }
        }
    }
}
void Anon_mouS(){
    int n;
    f();
    cin>>n;
    for(i=1;i<=n;i++)cout<<ans[i]<<endl;
}
int32_t main(){
    fastio;
    int q=1;
    // sieve();
    // cin>>q;
    for(int it=1;it<=q;it++){
        // cout<<"Case #"<<it<<": ";
        Anon_mouS();
    }
    return 0;   
}

Compiler output:
a.cc:48:9: error: size of array 'ans' is not an integral constant-expression
   48 | int ans[N];
      |         ^
Language: C

#include<stdio.h>
#include<math.h>
 
int main(void)
{
  int N;
  scanf("%d",&N);
  int sum=0;
  int b[N];
  int rN=sqrt(N);
  int a[][][];
   for(int x=1;x<=rN;x++)
   {
     for(int y=1;y<=rN/x;y++)
     {
       for(int z=1;z<=rN/x*y;z++)
       {
         a[x][y][z]=x*x+y*y+z*z+x*y+y*z+z*x;
         if(a[x][y][z]==N)
         {
           sum++;
         }
         
       }
     }
   }
   b[N-1]=sum;
  for(int i=1;i<N;i++)
  {
    sum=0;
     for(int x=1;x<sqrt(i);x++)
   {
     for(int y=1;y<sqrt(i)/x;y++)
     {
       for(int z=1;z<sqrt(i)/x*y;z++)
       {
         if(a[x][y][z]==i)
         {
           sum++;
         }
         
       }
     }
   }
   b[i-1]=sum;
  }
 for(int i=0;i<N;i++){
   printf("%d",b[i]);
 }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:7: error: array type has incomplete element type 'int[]'
   11 |   int a[][][];
      |       ^
main.c:11:7: note: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first
Language: C

#include<stdio.h>
#include<math.h>
 
int main(void)
{
  int N;
  scanf("%d",&N);
  for(int i=1;i<=N;i++)
  {
    int sum=0;
    for(int x=1;x<=sqrt(i);x++)
    {
      if(x*x+y*y+z*z+x*y+y*z+z*x==i)
      {
        sum++;
      }
    }
    printf("%d\n",3*sum);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:14: error: 'y' undeclared (first use in this function)
   13 |       if(x*x+y*y+z*z+x*y+y*z+z*x==i)
      |              ^
main.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:18: error: 'z' undeclared (first use in this function)
   13 |       if(x*x+y*y+z*z+x*y+y*z+z*x==i)
      |                  ^
Language: C

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

int main(void)
{
  int N;
  scanf("%d",&N);
  for(int i=1;i<=N;i++)
  {
    int sum=0;
    for(int x=1;x<=sqrt(i);x++)
    {
      for(int y=1;y<=sprt(i);y++)
      {
        for(int z=1;z<=sqrt(i);z++)
        {
          if(x*x+y*y+z*z+x*y+y*z+z*x==i)
          {
            sum++;
          }
        }
      }
    }
    printf("%d",sum);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:22: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   13 |       for(int y=1;y<=sprt(i);y++)
      |                      ^~~~
      |                      sqrt
Language: C

#include<stdio.h>

int main(void)
{
  int N;
  scanf("%d",&N);
  for(int i=1;i<=N;i++)
  {
    int sum=0;
    for(int x=1;x<=i,x++)
    {
      for(int y=1;y<=i,y++)
      {
        for(int z=1;z<=i;z++)
        {
          if(x*x+y*y+z*z+x*y+y*z+z*x==i)
          {
            sum++;
          }
        }
      }
    }
    printf("%d",sum);
  }
  return 0;

Compiler output:
main.c: In function 'main':
main.c:10:25: error: expected ';' before ')' token
   10 |     for(int x=1;x<=i,x++)
      |                         ^
      |                         ;
main.c:12:27: error: expected ';' before ')' token
   12 |       for(int y=1;y<=i,y++)
      |                           ^
      |                           ;
main.c:25:3: error: expected declaration or statement at end of input
   25 |   return 0;
      |   ^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define sqr(x) ((x)*(x))
int main(){
 	int n;
  	cin>>n;
    int res[n+5]={0};
    for(int x=1;x<=105;x++){
    	 for(int y=1;y<=105;y++){
         	 for(int z=1;z<=105;z++){
             	int ans = sqr(x) + sqr(x) + sqr(x) + xy + yz + zx;
                if((ans/2) < 10050)res[ans/2]++;
             }
         }
    }
  for(int i=1;i<=n;i++){
  	cout<<res[i]<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:54: error: 'xy' was not declared in this scope; did you mean 'y'?
   11 |                 int ans = sqr(x) + sqr(x) + sqr(x) + xy + yz + zx;
      |                                                      ^~
      |                                                      y
a.cc:11:59: error: 'yz' was not declared in this scope; did you mean 'z'?
   11 |                 int ans = sqr(x) + sqr(x) + sqr(x) + xy + yz + zx;
      |                                                           ^~
      |                                                           z
a.cc:11:64: error: 'zx' was not declared in this scope; did you mean 'z'?
   11 |                 int ans = sqr(x) + sqr(x) + sqr(x) + xy + yz + zx;
      |                                                                ^~
      |                                                                z
Language: C++

#ifdef _MSC_VER
#include "stdc++.h"
#endif
#ifdef __GNUC__
#include<bits/stdc++.h>
#endif
using namespace std;

using ll = long long;

//vector
using vi = vector<int>;
using vii = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;

//constant
const double EPS = 1e-10;

#define REP(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, s, e) for (ll i = s; i < e; i++)
#define ALL(x) (x).begin(),(x).end()
#define RALL(x) (x).rbegin(), (x).rend()

//debug
#define DUMP(x)  cerr << #x << " = " << (x) << endl;
#define DEBUG(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl;

// vector
//template<typename T> vector<vector<T>> vv(ll H, ll W, T v) { return vector<vector<T>> vec(H, vector<T>(W, v)); }

// view vector
template<typename T> void view(T e) { cout << e << endl; }
template<typename T> void view(const vector<T>& v) { for (const auto& e : v) { cout << e << " "; } cout << endl; }
template<typename T> void view(const vector<vector<T> >& vv) { for (const auto& v : vv) { view(v); } }

// DP
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }




// ***************************************

ll f(ll x, ll y, ll z){
    return x * x + y * y + z * z + x * y + y * z + z * x;
}

int main(){

    int N;
    cin >> N;

    vll cnt(N + 1, 0);

    FOR(x, 1, 101) FOR(y, 1, 101) FOR(z, 1, 101){
        ll ans = f(x, y, z);
        if (ans <= N) cnt[ans]++;
    }

    FOR(i, 1, N + 1) cou << cnt[i] << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:62:22: error: 'cou' was not declared in this scope; did you mean 'cos'?
   62 |     FOR(i, 1, N + 1) cou << cnt[i] << endl;
      |                      ^~~
      |                      cos
Language: C++

#ifdef _MSC_VER
#include "stdc++.h"
#endif
#ifdef __GNUC__
#include<bits/stdc++.h>
#endif
using namespace std;

using ll = long long;

//vector
using vi = vector<int>;
using vii = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;

//constant
const double EPS = 1e-10;

#define REP(i, n) for (ll i = 0; i < n; i++)
#define FOR(i, s, e) for (ll i = s; i < e; i++)
#define ALL(x) (x).begin(),(x).end()
#define RALL(x) (x).rbegin(), (x).rend()

//debug
#define DUMP(x)  cerr << #x << " = " << (x) << endl;
#define DEBUG(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl;

// vector
//template<typename T> vector<vector<T>> vv(ll H, ll W, T v) { return vector<vector<T>> vec(H, vector<T>(W, v)); }

// view vector
template<typename T> void view(T e) { cout << e << endl; }
template<typename T> void view(const vector<T>& v) { for (const auto& e : v) { cout << e << " "; } cout << endl; }
template<typename T> void view(const vector<vector<T> >& vv) { for (const auto& v : vv) { view(v); } }

// DP
template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; }




// ***************************************

ll f(ll x, ll y, ll z){
    return pw(x,y,z) + x * y + y * z + z * x;
}

int main(){

    int N;
    cin >> N;

    vll cnt(N + 1, 0);

    FOR(x, 1, 101) FOR(y, 1, 101) FOR(z, 1, 101){
        ll ans = f(x, y, z);
        if (ans <= N) cnt[ans]++;
    }

    FOR(i, 1, N + 1) cou << cnt[i] << endl;

    return 0;
}


Compiler output:
a.cc: In function 'll f(ll, ll, ll)':
a.cc:47:12: error: 'pw' was not declared in this scope; did you mean 'pow'?
   47 |     return pw(x,y,z) + x * y + y * z + z * x;
      |            ^~
      |            pow
a.cc: In function 'int main()':
a.cc:62:22: error: 'cou' was not declared in this scope; did you mean 'cos'?
   62 |     FOR(i, 1, N + 1) cou << cnt[i] << endl;
      |                      ^~~
      |                      cos
Language: C++

            for(z=0;z++<=105;){
                if((v=x*x+y*y+z*z+x*y+y*z+z*x) < 10050){


Compiler output:
a.cc:1:13: error: expected unqualified-id before 'for'
    1 |             for(z=0;z++<=105;){
      |             ^~~
a.cc:1:21: error: 'z' does not name a type
    1 |             for(z=0;z++<=105;){
      |                     ^
a.cc:1:30: error: expected unqualified-id before ')' token
    1 |             for(z=0;z++<=105;){
      |                              ^
Language: C

#include <stdio.h>
 
int main(void) {
    int N,i,x,y,z,j,k,flag,n;
    max=1;
    flag=0;
    scanf("%d" ,&N);
    for (n=1; n<=N; n++) {
        for (i=1;i<=100; i++) {
            x=i;
          if(n<=x){
            break;
          }
            for (j=1;j<=100 ; j++) {
                y=j;
              if(n<=y){
                    break;
                }
                for (k=1;k<=100 ; k++) {
                    z=k;
                    if (n == x*x + y*y + z*z + x*y + y*z + z*x){
                        flag++;
                    }
                    if(n>10000) break;
                }
            }
        }
        printf("%d\n" ,flag);
        flag=0;
    }
    return 0;
}


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

#include <stdio.h>
 
int main(void) {
    int N,i,x,y,z,j,k,flag,n;
    max=1;
    flag=0;
    scanf("%d" ,&N);
    for (n=1; n<=N; n++) {
        for (i=1;i<=100; i++) {
            x=i;
          if(n<=x){
            break;
          }
            for (j=1;j<=100 ; j++) {
                y=j;
              if(n<=y){
                    break;
                }
                for (k=1;k<=100 ; k++) {
                    z=k;
                    if (n == x*x + y*y + z*z + x*y + y*z + z*x){
                        flag++;
                    }
                    if(n>10000) break;
                }
            }
        }
        printf("%d\n" ,flag);
        flag=0;
    }
    return 0;
}


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

#include <stdio.h>

int main(void) {
int n,ans[1050];
scanf_s("%d" ,&n);
for (int x = 1; x <= 100; x++) {
for (int y = 1; y <= 100; y++) {
  for (int z = 1; z <= 100; z++) {
    int s = x*x + y*y + z*z;
    s += x*y + y*z + z*x;
      if (s > n) continue;
    ans[s]+= 1;
  }
}
}

for (int i = 1; i <= n; i++) {
  printf("%d\n" ,ans[i]);
}
return 0;
}


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

#include <iostream>
#include <vector>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
int main() {
  int n;
  cin >> n;
  vector<int> ans(n+1);
  for (int x = 1; x <= 100; x++) {
    for (int y = 1; y <= 100; y++) {
      for (int z = 1; z <= 100; z++) {
        int s = x*x + y*y + z*z;
        s += x*y + y*z + z*x;
        if (s > n) continue;
        ans[s]++;
      }
    }
  }
 
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << endl;
  }
  return 0;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;
 
int main() {
  int n;
  cin >> n;
  vector<int> ans(n+1);
  for (int x = 1; x <= 100; x++) {
    for (int y = 1; y <= 100; y++) {
      for (int z = 1; z <= 100; z++) {
        int s = x*x + y*y + z*z;
        s += x*y + y*z + z*x;
        if (s > n) continue;
        ans[s]++;
      }
    }
  }
 
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << endl;
  }
  return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  for(int i = 1;  i <= n; ++i){
    int cnt = 0;
    int N = i;
    for(int x = 1; x * x<= n; ++x){
      for(int y = 1; y * y <= n; ++y){
        for(int z = 1; z * z <= n; ++z){
          int cal =  x * x + y * y + z * z + x * y + y * z + z * x;
          if( cal < N)
           	continue;
          if(cal == N)
            ++cnt;
        	break;
      }
    }
    cout << cnt << '\n';
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  for(int i = 1;  i <= n; ++i){
    int cnt = 0;
    int N = i;
    for(int x = 1; x <= n; ++x){
      for(int y = 1; y <= n; ++y){
        for(int z = 1; z <= n; ++z){
          int cal =  x * x + y * y + z * z + x * y + y * z + z * x;
          if( cal < N)
           	continue;
          if(cal == N)
            ++cnt;
        	break;
      }
    }
    cout << cnt << '\n';
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  for(int i = 1;  i <= n; ++i){
    int cnt = 0;
    int N = i;
    for(int x = 1; x <= n; ++x){
      for(int y = 1; y <= n; ++y){
        for(int z = 1; z <= n; ++j){
          int cal =  x * x + y * y + z * z + x * y + y * z + z * x;
          if( cal < N)
           	continue;
          if(cal == N)
            ++cnt;
        	break;
      }
    }
    cout << cnt << '\n';
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: 'j' was not declared in this scope
   11 |         for(int z = 1; z <= n; ++j){
      |                                  ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  for(int i = 1;  i <= n; ++i){
    int cnt = 0;
    int N = i;
    for(int x = 1; x <= n; ++x){
      for(int y = 1; y <= n; ++y){
        for(int z = 1; z <= n; ++j){
          if( (x + y + z ) * (x + y + z) - x * y - y * z - z * x == N)
            ++cnt;
        }
      }
    }
    cout << cnt << '\n';
  }
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  for(int i = 1;  i <= n; ++i){
    int cnt = 0;
    int N = i;
    for(int x = 1; x <= n; ++x){
      for(int y = 1; y <= n; ++y){
        for(int z = 1; j <= n; ++j){
          if( (x + y + z ) * (x + y + z) - x * y - y * z - z * x == N)
            ++cnt;
        }
      }
    }
    cout << cnt << '\n';
  }
}

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

#include<bits/stdc++.h>
using namespace std;
 
 int main(){int n;
 cin>>n;
 	for(int i=1;i<100;i++){
 		for(int j=1;j<100;j++){
 			for(int k=1;k<100;k++){
 				mp[pow(i,2)+pow(j,2)+pow(k,2)==2*n]++;	
			 }
		 }
	 }
	 for(auto m : mp){
	 	cout<<m.second;
	 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: 'mp' was not declared in this scope
    9 |                                 mp[pow(i,2)+pow(j,2)+pow(k,2)==2*n]++;
      |                                 ^~
a.cc:13:23: error: 'mp' was not declared in this scope; did you mean 'm'?
   13 |          for(auto m : mp){
      |                       ^~
      |                       m
Language: C++

#include<bits/stdc++.h>
//#include <boost/multiprecision/cpp_int.hpp>
//using namespace boost::multiprecision;
#define speed ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#pragma GCC optimize "trapv"
#define _GLIBCXX_DEBUG
#define ll long long int
#define ld long double
#define ull unsigned long long int  // ranges from (0 - twice of long long int)
#define rep(i,a,n) for (ll i=a;i<n;i++)
#define per(i,a,n) for (ll i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define vll vector<ll>
#define MOD 1000000007LL
#define llpair pair<ll,ll>
#define INF 1000000000000000000ll		// this is 1e18 long long 
#define np next_permutation
#define PI acos(-1)
#define DEB(x) cout<<#x<<" "<<x<<endl;
#define rotate_left(vec,amt) rotate(vec.begin(),vec.begin()+amt,vec.end());
#define rotate_right(vec,amt) rotate(vec.begin(),vec.begin()+vec.size()-amt,vec.end());
#define all(x) x.begin(),x.end()
#define sortall(x) sort(all(x))
#define clr(x) memset(x,0,sizeof(x))
using namespace std;
ll a[10004];
int main()
{
    speed;
    ll n;
  cin>>n;
  rep(i,1,102)
    rep(j,1,102)
    rep(k,1,102)
  {
    ll x;
    x=i*i+j*j+k*k+j*k+k*i+j*i
      a[x]++;
  }
  rep(i,1,n+1)
  {
    cout<<a[i]<<endl;
  }
  
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:30: error: expected ';' before 'a'
   38 |     x=i*i+j*j+k*k+j*k+k*i+j*i
      |                              ^
      |                              ;
   39 |       a[x]++;
      |       ~
Language: C

#include<stdio.h>
int main(){
  int n,i,j,k;
  scanf("%d",&n);
  int m[n+1]={0};
  for(i=1;i<32;i++){
    for(j=1;j<32;j++){
      for(k=1;k<32;k++){
        int s=i*i+j*j+k*k+i*j+j*k+k*i;
        if(s<=n){
       	 m[s]++;
        }
      }
    }
  }
  for(i=1;i<=n;i++){
    printf("%d\n",m[i]);
  }
}

Compiler output:
main.c: In function 'main':
main.c:5:14: error: variable-sized object may not be initialized except with an empty initializer
    5 |   int m[n+1]={0};
      |              ^
Language: C++

#include<bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
#define lli long long int
#define rep(i,s,e) for(int i=s;i<e;i++)
#define endl '\n'
int fn(int a);
int calc(int x,int y,int z);
int main(){

}

int fn(int a){
    int s=(int)sqrt(a);
    rep(x,1,s){
        rep(y,1,s){
            rep(z,1,s){
                if(clac(x,y,z)==a){
                    if(x==y&&y==z)return 1;
                    else if((x==y&&y!=z)||(x!=y&&y==z))return 3;
                    else return 6;
                }
            }
        }
    }
    return 0;
}
int calc(int x,int y,int z){
    return x*x+y*y+z*z+x*y+y*z+z*x;
}

Compiler output:
a.cc: In function 'int fn(int)':
a.cc:18:20: error: 'clac' was not declared in this scope; did you mean 'calc'?
   18 |                 if(clac(x,y,z)==a){
      |                    ^~~~
      |                    calc
Language: C++

#include<bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
#define lli long long int
#define rep(i,s,e) for(int i=s;i<e;i++)
#define endl '\n'
int fn(int a);
int calc(int x,int y,int z);
int main(){

}

int fn(int a){
    int s=(int)sqrt(a);
    rep(x,1,s){
        rep(y,1,s){
            rep(z,1,s){
                if(clac(x,y,z)==a){
                    if(x==y&&y==z)return 1;
                    else if((x==y&&y!=z)||(x!=y&&y==z))return 3;
                    else return 6
                }
            }
        }
    }
    return 0;
}
int calc(int x,int y,int z){
    return x*x+y*y+z*z+x*y+y*z+z*x;
}

Compiler output:
a.cc: In function 'int fn(int)':
a.cc:18:20: error: 'clac' was not declared in this scope; did you mean 'calc'?
   18 |                 if(clac(x,y,z)==a){
      |                    ^~~~
      |                    calc
a.cc:21:34: error: expected ';' before '}' token
   21 |                     else return 6
      |                                  ^
      |                                  ;
   22 |                 }
      |                 ~
Language: C++

#include "math.h"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <string>
#include <map>
#include <vector>
#include <functional>
#include <numeric>
#include <cmath>
using namespace std;

int t;
const int N = 10001;
int arr[N];

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	for (int i = 0; i < N; i++)
	{
		arr[i] = 0;
	}
	for (int x = 1; x < 101; x++)
	{

		for (int y = x; y <101; y++)
		{
			for (int z = y; z <101; z++)
			{
				long long s = x * x + y * y + z * z + x * y + x * z + y * z;
				if (s < N) arr[s - 1] += k;
			}

		}
	}
	cin >> t;
	for (int i = 0; i < t; i++)
	{
		cout << arr[i] << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:58: error: 'k' was not declared in this scope
   33 |                                 if (s < N) arr[s - 1] += k;
      |                                                          ^
Language: C++


#include "math.h"
#include <iostream>
#include <fstream>
#include <algorithm>
#include <string>
#include <map>
#include <vector>
#include <functional>
#include <numeric>
#include <cmath>
using namespace std;

int t;
const int N = 10001;
int arr[N];

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	for (int i = 0; i < N; i++)
	{
		arr[i] = 0;
	}
	for (int x = 1; x < 101; x++)
	{

		for (int y = x; y <101); y++)
		{
			for (int z = y; z <101; z++)
			{
				long long s = x * x + y * y + z * z + x * y + x * z + y * z;
				int k = 6;
				if (x == y && x == z)
				{
					k = 1;
				}
				else if (x == y) {
					k = 3;
				}
				else if (x == z) {
					k = 3;
				}
				else if (y == z) {
					k = 3;
				}
				if (s < N) arr[s - 1] += k;
			}

		}
	}
	cin >> t;
	for (int i = 0; i < t; i++)
	{
		cout << arr[i] << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:39: error: expected ';' before ')' token
   29 |                 for (int y = x; y <101); y++)
      |                                       ^
      |                                       ;
a.cc:29:42: error: 'y' was not declared in this scope
   29 |                 for (int y = x; y <101); y++)
      |                                          ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;
typedef long long ll;

int main(){

  int n; cin>>n;

  for(int x=1;x*x<101;x++){
    for(int y=1;y*y<=101;y++){
        for(int z=1;z<=101;z++){
         int t = x*x + y*y + z*z + x*y + y*z + z*x;
				if(t<=10000)ans[t]++;
			}
		}
	}

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

 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:45: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |                                 if(t<=10000)ans[t]++;
      |                                             ^~~
      |                                             abs
a.cc:22:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |     cout<<ans[i]<<endl;
      |           ^~~
      |           abs
Language: C++

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

int main() {
  int N;
  vector<int> igarashi(N);
  
  for (int i = 1; i < sqr(N); i++) {
    for (int j = 1; j < sqr(N); j++) {
      for (int k = 1; k < sqr(N); k++) {
        int kyoko = i * i + j * j + k * k + i * j + j * k + k * i;
        if (kyoko <= N) {
          igarashi.at(kyoko - 1)++;
        }
      }
    }
  }
  for (int l = 0; l < N; l++) {
    cout << igarashi.at(l) << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: 'sqr' was not declared in this scope; did you mean 'sqrt'?
    8 |   for (int i = 1; i < sqr(N); i++) {
      |                       ^~~
      |                       sqrt
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<math.h>
#include<map>
using namespace std;
using ll = long long;
int main() {
    int n;
    cin >> n;
    for(int x = 1;x <= 100;x++){
        for(int y = 1;y <= 100;y++){
            for(int z = 1;z <= 100;z++){
                int s = x * x + y * y + z * z;
                s += x * y + y * z + z * x;
                if(s > n){
                    continue;
                }
                ans[s]++;
            }
        }
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |                 ans[s]++;
      |                 ^~~
      |                 abs
a.cc:26:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   26 |         cout << ans[i] << endl;
      |                 ^~~
      |                 abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll n,ans;cin>>n;
  map<ll,ll> ans;
  for(ll x=1;x<101;x++)for(ll y=1;y<101;y++)for(ll z=1;z<101;z++)
  ans[x*x+y*y+z*z+x*y+y*z+z*x]++;
  rep(i,n) print(ans[i+1]); 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:14: error: conflicting declaration 'std::map<long long int, long long int> ans'
   20 |   map<ll,ll> ans;
      |              ^~~
a.cc:19:8: note: previous declaration as 'long long int ans'
   19 |   ll n,ans;cin>>n;
      |        ^~~
a.cc:22:6: error: invalid types 'long long int[long long int]' for array subscript
   22 |   ans[x*x+y*y+z*z+x*y+y*z+z*x]++;
      |      ^
a.cc:23:21: error: invalid types 'long long int[long long int]' for array subscript
   23 |   rep(i,n) print(ans[i+1]);
      |                     ^
a.cc:14:27: note: in definition of macro 'print'
   14 | #define print(a) cout << (a) << endl
      |                           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lvector vector<ll>
#define cvector vector<char>
#define svector vector<string>
#define lque queue<ll>
#define lpque priority_queue<ll>
#define dlpque priority_queue<ll,lvector,greater<ll>>
#define P pair<ll,ll>
#define ALL(a) a.begin(),a.end()
#define RALL(a) a.rbegin(),a.rend()
#define rep(i,n) for(ll i=0; i<n; ++i)
#define print(a) cout << (a) << endl

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll n,ans;cin>>n;
  map<ll,ll> ans;
  for(ll x=1;x<101;x++)for(ll y=1;y<101;y++)for(ll z=1;z<101;z++)
  mp[x*x+y*y+z*z+x*y+y*z+z*x]++;
  rep(i,n) print(mp[i+1]); 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:14: error: conflicting declaration 'std::map<long long int, long long int> ans'
   20 |   map<ll,ll> ans;
      |              ^~~
a.cc:19:8: note: previous declaration as 'long long int ans'
   19 |   ll n,ans;cin>>n;
      |        ^~~
a.cc:22:3: error: 'mp' was not declared in this scope
   22 |   mp[x*x+y*y+z*z+x*y+y*z+z*x]++;
      |   ^~
a.cc:23:18: error: 'mp' was not declared in this scope
   23 |   rep(i,n) print(mp[i+1]);
      |                  ^~
a.cc:14:27: note: in definition of macro 'print'
   14 | #define print(a) cout << (a) << endl
      |                           ^
Language: C++

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

int main(){
  int N; cin >> N;
  int i = 1;
  map<int, int> mp;


    for(int j = 1; j <= n; j++){
      for(int k = 1; k <= n; k++){
        for(int l = 1; l <= n; l++){
		  long long sum = j*j+k*k+l*l+j*k+k*l+l*j;
          if(sum > N)break;
          mp[sum]++;
        }
      }
    }
  for(int i = 0; i < N; i++){
    cout << mp[i+1] << endl; 
  }
  return 0;
}

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

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


int main() {
  int N  ; 
  cin >> N ; 
  vector<int> ans(N+1)
  
  for( int x = 1 ; x <= 100 ; x++ ){
      for( int y = 1 ; y <= 100 ; y++ ){
          for( int z = 1 ; z <= 100 ; z++ ){
    		int s = x*x + y*y + z*z + x*y + y*z + z*x ; 
            if(s > N) {
              continue ; 
              ans[s]++ ; 
            }
  		  }
  	  }
  }
  
  for(int i = 1 ; i <= N ; i++){
    cout << ans[i] << endl ; 
  }
  
  return 0 ; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected ',' or ';' before 'for'
   10 |   for( int x = 1 ; x <= 100 ; x++ ){
      |   ^~~
a.cc:10:20: error: 'x' was not declared in this scope
   10 |   for( int x = 1 ; x <= 100 ; x++ ){
      |                    ^
Language: C++

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

int xyz(int x, int y, int z) {
    return (x * x) + (y * y) + (z * z) + (x * y) + (y * z) + (z * x);
}

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

    
        int cnt = 0;
        for (int x = 1; x <= n_tmp; x++) {
            for (int y = 1; y <= n_tmp; y++) {
                for (int z = 1; z <= n_tmp; z++) {
                    if (n_tmp == xyz(x,y,z)) cnt++;
                }
            }
        }
        cout << cnt << endl;
        

    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,p;
  cin>>n;
  for(int i=1; i<=n; i++)
  {
    int count=0;
    for(int j=1; j<=n; j++)
    {
      for(int k=1; k<=n; k++)
      {
        p=(i^2)+(j^2)+(k^2)+(i*j)+(j*k)+(i*k);
       if(p==n)
         count++;
      }
    }
    cout<<count<<endl;
    return 0;
  }

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,p,count=0;
  cin>>n;
  for(int i=1; i<=n; i++)
  {
    for(int j=1; j<=n; j++)
    {
      for(int k=1; k<=n; k++)
      {
        p=(i*i)+(j*j)+(k*k)+(i*j)+(j*k)+(i*k);
       if(p==n)
         count++;
      }
    }
    cout<<count<<endl;
    return 0;
  }

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,p,count=0;
  cin>>n;
  for(int i=1; i<=n; i++)
  {
    for(int j=1; j<=n; j++)
    {
      for(int k=1; k<=n; k++)
      {
        p=(i^2)+(j^2)+(k^2)+(i*j)+(j*k)+(i*k);
       if(p==n)
         count++;
      }
    }
    cout<<count<<endl;
    return 0;
  }
    

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

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


#define ll          long long
#define uint        unsigned int 
#define ld          long double
#define SAM         ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define FOR(i,a,b)  for(int i=a;i<=b;++i)
#define RFOR(i,a,b) for(int i=a;i>b;--i)
#define mod         1000000007
#define mxn         200005
#define pb          push_back
#define pii         pair<int,int>
#define f           first
#define s           second
#define sz(x)       (int)x.size()
#define all(x)      x.begin(),x.end()

using namespace std;


int power(int a,int n)
{
    a %= mod;
    if(n == 1) return a;
    if(n == 0) return 1;
    if(n%2) return (a*(power((a*a)%mod,n/2)%mod))%mod;           //n is odd
    return power((a*a)%mod,n/2)%mod;                             //n is even
}

int main()
{
    SAM;
    int n,x=1,y=1,z=1;
    cin>>n;

    int arr[n+1];
    memset(arr,0,sizeof(arr));
    //arr[6]=1;

    while(power(x,2)+power(y,2)+power(z,2)+x*y+y*z+x*z<=n)
    {
        if(z>x && z>y)
            arr[power(x,2)+power(y,2)+power(z,2)+x*y+y*z+x*z]+=3;
        z++;
    
    }
    
    z=1;
    while(power(x,2)+power(y,2)+power(z,2)+x*y+y*z+x*z<=n)
    {
        if(z>x && y>x)
            arr[power(x,2)+power(y,2)+power(z,2)+x*y+y*z+x*z]+=3;
        y++;
        z++;
    }
    
    y=1;z=1;
    while(power(x,2)+power(y,2)+power(z,2)+x*y+y*z+x*z<=n)
    {
        if(x==y && x==z)
            arr[power(x,2)+power(y,2)+power(z,2)+x*y+y*z+x*z]+=1;
        x++;
        y++;
        z++;
    }

    FOR(i,1,n)
    {
    	cout<<arr[i]<<"\n";
    }

   
    
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:39:5: error: 'memset' was not declared in this scope
   39 |     memset(arr,0,sizeof(arr));
      |     ^~~~~~
a.cc:3:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<iostream>
  +++ |+#include <cstring>
    3 |
Language: C

#include <stdio.h>
int main(void){
  int N;
  scanf("%d", &N;
  int i, x, y, z, c[10001] = {0};
  for(x=1; x<=100; x++){
    for(y=1; y<=100; y++){
      for(z=1; z<=100; z++){
        int f = x*x+y*y+z*z+x*y+y*z+z*x;
        if(f < 10001){
          c[f]++;
        }
      }
    }
  }

  for(i=1;i<=N;i++){
    printf("%d\n", c[i]);
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected ')' before ';' token
    4 |   scanf("%d", &N;
      |        ~        ^
      |                 )
main.c:20:12: error: expected ';' before '}' token
   20 |   return 0;
      |            ^
      |            ;
   21 | }
      | ~
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
      
      int[] answer = new int[10050];
      for(int i=0;i<106;i++){
        for(int j=0;j<106;j++){
          for(int k=0;k<106;k++){
            int v = i*i+j*j+k*K+i*j+j*k+k*i;
            if(v<10050){
              answer[v]++;
            }
          }
        }
      }
      
      for(int i=1;i<N;i++){
        System.out.println(String.valueOf(answer[v]));
      }
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
            int v = i*i+j*j+k*K+i*j+j*k+k*i;
                              ^
  symbol:   variable K
  location: class Main
Main.java:21: error: cannot find symbol
        System.out.println(String.valueOf(answer[v]));
                                                 ^
  symbol:   variable v
  location: class Main
2 errors
Language: C++

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

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


Compiler output:
a.cc:17:3: error: expected unqualified-id before 'for'
   17 |   for(int i = 1;i <= A;i++){
      |   ^~~
a.cc:17:17: error: 'i' does not name a type
   17 |   for(int i = 1;i <= A;i++){
      |                 ^
a.cc:17:24: error: 'i' does not name a type
   17 |   for(int i = 1;i <= A;i++){
      |                        ^
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#pragma comment(linker, "/STACK: 2000000")
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define clock (clock() * 1000.0 / CLOCKS_PER_SEC)
#define dbg(x) cout << #x << '=' << x << '\n';
#define ll long long
#define double long double
#define x first
#define y second
#define vi vector <int>
#define L nod<<1
#define R ((nod<<1)|1)
#define int ll
#define PI 3.14159265358979
const ll mod=1000000007;
int n, ans[10020];

int32_t main(){
    ios_base :: sync_with_stdio(0); cin.tie(); cout.tie();
    mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
    for(int i=1; i<=100; i++){
        for(int j=1; j<=100; j++){
            for(int k=1; k<=100; k++){
                int val=(i*i+j*j+k*k+i*j+j*k+k*i);
                if(val<=10000) ans[v]++;
            }
        }
    }
    cin>>n;
    for(int i=1; i<=n; i++) cout<<ans[i]<<" ";
}



Compiler output:
a.cc: In function 'int32_t main()':
a.cc:26:36: error: 'v' was not declared in this scope
   26 |                 if(val<=10000) ans[v]++;
      |                                    ^
Language: Java

import java.util.Scanner;
public class XYZ {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int result[] = new int[n+1];

		for(int x=1; x<=n; x++) {
			for(int y=1; y<=n; y++) {
				for(int z=1; z<=n; z++) {
					int a = (x*x) + (y*y) + (z*z) + (x*y) + (y*z) + (z*x);
					if(a<n) {
						result[a]++;
					}
				}
			}
		}
		for(int i=1; i<=n; i++) {
			System.out.println(result[i]);
		}
	}
}


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

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

int main() {
  int N;
  cin >> N;
  int counter;
  for (int i = 1; i <= N; i++) {
    counter = 0
    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:9:16: error: expected ';' before 'for'
    9 |     counter = 0
      |                ^
      |                ;
   10 |     for (int x = 1; x <= N; x++) {
      |     ~~~         
a.cc:10:21: error: 'x' was not declared in this scope
   10 |     for (int x = 1; x <= N; x++) {
      |                     ^
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;
          int counter;
          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:32:11: error: 'counter' was not declared in this scope
   32 |   cout << counter << endl;
      |           ^~~~~~~