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;
    REP2(i,n){
        REP2(x,99){
            REP2(y,99){
                REP2(z,99){
                    if((x*(x+y)+y*(y+z)+z*(z+x))==i){
                        ans++;
                    }
                }
            }
        }
        cout <<ans<<endl;
        ans= 0;
    }
}
#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;
    REP2(i,n){
        REP2(x,99){
            REP2(y,99){
                REP2(z,99){
                    if((x*(x+y)+y*(y+z)+z*(z+x))==i){
                        ans++;
                    }
                }
            }
        }
        cout <<ans<<endl;
        ans= 0;
    }
}
#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:44:5: error: redefinition of 'long long int k'
   44 | 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;
      |     ^
a.cc:13:5: note: 'long long int k' previously defined here
   13 | 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;
      |     ^
a.cc:44:9: error: redefinition of 'long long int n'
   44 | 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;
      |         ^
a.cc:13:9: note: 'long long int n' previously defined here
   13 | 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;
      |         ^
a.cc:44:14: error: redefinition of 'long long int m'
   44 | 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;
      |              ^
a.cc:13:14: note: 'long long int m' previously defined here
   13 | 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;
      |              ^
a.cc:44:19: error: redefinition of 'long long int l'
   44 | 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;
      |                   ^
a.cc:13:19: note: 'long long int l' previously defined here
   13 | 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;
      |                   ^
a.cc:44:23: error: redefinition of 'long long int r'
   44 | 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;
      |                       ^
a.cc:13:23: note: 'long long int r' previously defined here
   13 | 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;
      |                       ^
a.cc:44:27: error: redefinition of 'long long int a'
   44 | 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;
      |                           ^
a.cc:13:27: note: 'long long int a' previously defined here
   13 | 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;
      |                           ^
a.cc:44:32: error: redefinition of 'long long int b'
   44 | 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;
      |                                ^
a.cc:13:32: note: 'long long int b' previously defined here
   13 | 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;
      |                                ^
a.cc:44:37: error: redefinition of 'long long int c'
   44 | 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;
      |                                     ^
a.cc:13:37: note: 'long long int c' previously defined here
   13 | 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;
      |                                     ^
a.cc:44:42: error: redefinition of 'long long int d'
   44 | 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;
      |                                          ^
a.cc:13:42: note: 'long long int d' previously defined here
   13 | 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;
      |                                          ^
a.cc:44:46: error: redefinition of 'long long int e'
   44 | 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;
      |                                              ^
a.cc:13:46: note: 'long long int e' previously defined here
   13 | 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;
      |                                              ^
a.cc:44:50: error: redefinition of 'long long int ans'
   44 | 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;
      |                                                  ^~~
a.cc:13:50: note: 'long long int ans' previously defined here
   13 | 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;
      |                                                  ^~~
a.cc:44:56: error: redefinition of 'long long int ans2'
   44 | 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;
      |                                                        ^~~~
a.cc:13:56: note: 'long long int ans2' previously defined here
   13 | 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;
      |                                                        ^~~~
a.cc:44:63: error: redefinition of 'long long int x'
   44 | 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;
      |                                                               ^
a.cc:13:63: note: 'long long int x' previously defined here
   13 | 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;
      |                                                               ^
a.cc:44:67: error: redefinition of 'long long int y'
   44 | 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;
      |                                                                   ^
a.cc:13:67: note: 'long long int y' previously defined here
   13 | 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;
      |                                                                   ^
a.cc:45:8: error: redefinition of 'std::string s'
   45 | string s,t,S;
      |        ^
a.cc:14:8: note: 'std::string s' previously declared here
   14 | string s,t,S;
      |        ^
a.cc:45:10: error: redefinition of 'std::string t'
   45 | string s,t,S;
      |          ^
a.cc:14:10: note: 'std::string t' previously declared here
   14 | string s,t,S;
      |          ^
a.cc:45:12: error: redefinition of 'std::string S'
   45 | string s,t,S;
      |            ^
a.cc:14:12: note: 'std::string S' previously declared here
   14 | string s,t,S;
      |            ^
a.cc:46:8: error: redefinition of 'int main()'
   46 | signed main() {
      |        ^~~~
a.cc:15:8: note: 'int main()' previously defined here
   15 | signed main() {
      |        ^~~~
a.cc:75:5: error: redefinition of 'long long int k'
   75 | 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;
      |     ^
a.cc:13:5: note: 'long long int k' previously defined here
   13 | 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;
      |     ^
a.cc:75:9: error: redefinition of 'long long int n'
   75 | 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;
      |         ^
a.cc:13:9: note: 'long long int n' previously defined here
   13 | 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;
      |         ^
a.cc:75:14: error: redefinition of 'long long int m'
   75 | 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;
      |              ^
a.cc:13:14: note: 'long long int m' previously defined here
   13 | 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;
      |              ^
a.cc:75:19: error: redefinition of 'long long int l'
   75 | 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;
      |                   ^
a.cc:13:19: note: 'long long int l' previously defined here
   13 | 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;
      |                   ^
a.cc:75:23: error: redefinition of 'long long int r'
   75 | 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;
      |                       ^
a.cc:13:23: note: 'long long int r' previously defined here
   13 | 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;
      |                       ^
a.cc:75:27: error: redefinition of 'long long int a'
   75 | 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;
      |                           ^
a.cc:13:27: note: 'long long int a' previously defined here
   13 | 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;
      |                           ^
a.cc:75:32: error: redefinition of 'long long int b'
   75 | 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;
      |                                ^
a.cc:13:32: note: 'long long int b' previously defined here
   13 | 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;
      |                                ^
a.cc:75:37: error: redefinition of 'long long int c'
   75 | 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;
      |                                     ^
a.cc:13:37: note: 'long long int c' previously defined here
   13 | 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;
      |                                     ^
a.cc:75:42: error: redefinition of 'long long int d'
   75 | 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;
      |                                          ^
a.cc:13:42: note: 'long long int d' previously defined here
   13 | 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;
      |                                          ^
a.cc:75:46: error: redefinition of 'long long int e'
   75 | 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;
      |                                              ^
a.cc:13:46: note: 'long long int e' previously defined here
   13 | 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;
      |                                              ^
a.cc:75:50: error: redefinition of 'long long int ans'
   75 | 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;
      |                                                  ^~~
a.cc:13:50: note: 'long long int ans' previously defined here
   13 | 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;
      |                                                  ^~~
a.cc:75:56: error: redefinition of 'long long int ans2'
   75 | 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;
      |                                                        ^~~~
a.cc:13:56: note: 'long long int ans2' previously defined here
   13 | 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;
      |                                                        ^~~~
a.cc:75:63: error: redefinition of 'long long int x'
   75 | 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;
      |                                                               ^
a.cc:13:63: note: 'long long