Language: C++

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

//Common
using namespace std;using f64 = double;using i64=long long;using u64=unsigned long long;
template<typename T> using Arr=vector<T>;template<typename T> using Func=function<T>;template<typename T> using Str=basic_string<T>;
#define hfor(v, s, e) for(int v=(s);(s)<=v&&v<(e);++v)//half-opened range
#define hfori(v, s, e) for(int v=(e)-1;(s)<=v&&v<(e);--v)//inversion
#define hforo(v, s, e) int v=(s);for(;(s)<=v&&v<(e);++v)//out declaration
#define hforoi(v, s, e) int v=(e)-1; for(;(s)<=v&&v<(e);--v)
#define cfor(v, s, e) hfor(v,(s),(e)+1)//closed range
#define cfori(v, s, e) hfori(v,(s),(e)+1)
#define cforo(v, s, e) hforo(v,(s),(e)+1)
#define cforoi(v, s, e) hforoi(v,(s),(e)+1)
#define rep(v,x) hfor(v,0,(x))
#define repi(v,x) hfori(v,0,(x))
#define repo(v,x) hforo(v,0,(x))
#define all(x) (x).begin(),(x).end()
#define pushb push_back
#define pushf push_front
#define popb pop_back
#define popf pop_front
#define empl emplace
#define emplb emplace_back
#define emplf emplace_front
#define fi first
#define se second
#define cxp constexpr
#define PQMIN(...) std::priority_queue<__VA_ARGS__,Arr<__VA_ARGS__>,greater<__VA_ARGS__>>
template<class... A>
auto ARR(auto n, A&&...a){
	if constexpr(sizeof...(a)==0) return n;
	else return vector(n,ARR(a...));
}

//Math
template<typename T> cxp T inf() { return numeric_limits<T>::max() / 2; }
template<typename T> inline T sq(T x){return x*x;}
cxp int lgc(int x){return 64-__builtin_clzll(x-1);}
cxp int lgf(int x){return 63-__builtin_clzll(x);}
int rd(int lb, int ub){static mt19937 rng(time(0)^i64(new int)); return uniform_int_distribution<int>(lb, ub-1)(rng);}
int rd(int ub=inf<int>()){return rd(0,ub);}
const f64 pi=acosl(-1), eps=1e-10;

//IO
template<typename T>ostream& operator<<(ostream& s, const Arr<T>& a) {for(auto i:a) cout<<i<<' '; return s;}
auto cinint(){i64 x;cin>>x;return x;}
auto cinchr(){char x;cin>>x;return x;}
auto cinints(int n){Arr<i64> a(n);for(auto&i:a)cin>>i;return a;}
#ifndef DEBUG
	//#pragma GCC optimize ("Ofast") //somtimes it become more slower
	auto __PRE_RUN__=(ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),(cout<<fixed<<setprecision(11)), 0);
#endif

//Misc
int sz(const auto& x){return x.size();}
auto split(auto s, auto p){
	Arr<decltype(s)> ret;
	auto it1=s.begin();
	for(auto it2=it1; (it2 = find(it1,s.end(),p)) != s.end(); it1=it2+1)
		ret.pushb({it1, it2});
	ret.pushb({it1,s.end()});
	return ret;
}
template<typename T> T rev(const T& a){return {a.rbegin(),a.rend()};}
Arr<int> range(int n){ Arr<int> ret(n); rep(i,n)ret[i]=i; return ret; }
struct defer{ defer(auto f):f(f){} ~defer(){f();} function<void()> f; };
#define defer(x) auto _##__COUNTER__ = defer([&](){x;});
#define lam(expr, ...) [&](__VA_ARGS__){return expr;}
#define reduce accumulate

#define endl '\n'//not interactive?
#define int i64//MLE?
using pint = pair<int,int>;
using tint = tuple<int,int,int>;

signed main(){
	int z; cin>>z;
	cfor(n,1,z){
	int ans=0;
	for(int x=1;x*x<n;x++)
		for(int y=1;x*x+y*y+x*y<n;y++){
			int z=(-(x+y)+sqrt((x+y)*(x+y)-4*(x*x+y*y+x*y-n)))/2;
			if(x*x+y*y+z*z+x*y+y*z+z*x==n)
				ans++;
		}
	cout<<ans<<endl;
	}
	
	return 0;
}



Compiler output:
a.cc:1:1: error: stray '\' in program
    1 | \#include <bits/stdc++.h>
      | ^
a.cc:1:2: error: stray '#' in program
    1 | \#include <bits/stdc++.h>
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | \#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:5:32: error: 'vector' does not name a type
    5 | template<typename T> using Arr=vector<T>;template<typename T> using Func=function<T>;template<typename T> using Str=basic_string<T>;
      |                                ^~~~~~
a.cc:5:74: error: 'function' does not name a type; did you mean 'union'?
    5 | template<typename T> using Arr=vector<T>;template<typename T> using Func=function<T>;template<typename T> using Str=basic_string<T>;
      |                                                                          ^~~~~~~~
      |                                                                          union
a.cc:5:117: error: 'basic_string' does not name a type
    5 | template<typename T> using Arr=vector<T>;template<typename T> using Func=function<T>;template<typename T> using Str=basic_string<T>;
      |                                                                                                                     ^~~~~~~~~~~~
a.cc:30:10: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   30 | auto ARR(auto n, A&&...a){
      |          ^~~~
a.cc: In function 'constexpr T inf()':
a.cc:36:43: error: 'numeric_limits' was not declared in this scope
   36 | template<typename T> cxp T inf() { return numeric_limits<T>::max() / 2; }
      |                                           ^~~~~~~~~~~~~~
a.cc:36:59: error: expected primary-expression before '>' token
   36 | template<typename T> cxp T inf() { return numeric_limits<T>::max() / 2; }
      |                                                           ^
a.cc:36:62: error: '::max' has not been declared
   36 | template<typename T> cxp T inf() { return numeric_limits<T>::max() / 2; }
      |                                                              ^~~
a.cc: In function 'int rd(int, int)':
a.cc:40:31: error: 'mt19937' does not name a type
   40 | int rd(int lb, int ub){static mt19937 rng(time(0)^i64(new int)); return uniform_int_distribution<int>(lb, ub-1)(rng);}
      |                               ^~~~~~~
a.cc:40:73: error: 'uniform_int_distribution' was not declared in this scope
   40 | int rd(int lb, int ub){static mt19937 rng(time(0)^i64(new int)); return uniform_int_distribution<int>(lb, ub-1)(rng);}
      |                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:40:98: error: expected primary-expression before 'int'
   40 | int rd(int lb, int ub){static mt19937 rng(time(0)^i64(new int)); return uniform_int_distribution<int>(lb, ub-1)(rng);}
      |                                                                                                  ^~~
a.cc:40:98: error: expected ';' before 'int'
   40 | int rd(int lb, int ub){static mt19937 rng(time(0)^i64(new int)); return uniform_int_distribution<int>(lb, ub-1)(rng);}
      |                                                                                                  ^~~
      |                                                                                                  ;
a.cc:40:101: error: expected unqualified-id before '>' token
   40 | int rd(int lb, int ub){static mt19937 rng(time(0)^i64(new int)); return uniform_int_distribution<int>(lb, ub-1)(rng);}
      |                                                                                                     ^
a.cc: At global scope:
a.cc:42:14: error: 'acosl' was not declared in this scope
   42 | const f64 pi=acosl(-1), eps=1e-10;
      |              ^~~~~
a.cc:45:21: error: 'ostream' does not name a type
   45 | template<typename T>ostream& operator<<(ostream& s, const Arr<T>& a) {for(auto i:a) cout<<i<<' '; return s;}
      |                     ^~~~~~~
a.cc: In function 'auto cinint()':
a.cc:46:21: error: 'cin' was not declared in this scope
   46 | auto cinint(){i64 x;cin>>x;return x;}
      |                     ^~~
a.cc: In function 'auto cinchr()':
a.cc:47:22: error: 'cin' was not declared in this scope
   47 | auto cinchr(){char x;cin>>x;return x;}
      |                      ^~~
a.cc: In function 'auto cinints(int)':
a.cc:48:21: error: 'Arr' was not declared in this scope; did you mean 'ARR'?
   48 | auto cinints(int n){Arr<i64> a(n);for(auto&i:a)cin>>i;return a;}
      |                     ^~~
      |                     ARR
a.cc:48:28: error: expected primary-expression before '>' token
   48 | auto cinints(int n){Arr<i64> a(n);for(auto&i:a)cin>>i;return a;}
      |                            ^
a.cc:48:30: error: 'a' was not declared in this scope
   48 | auto cinints(int n){Arr<i64> a(n);for(auto&i:a)cin>>i;return a;}
      |                              ^
a.cc:48:48: error: 'cin' was not declared in this scope
   48 | auto cinints(int n){Arr<i64> a(n);for(auto&i:a)cin>>i;return a;}
      |                                                ^~~
a.cc: At global scope:
a.cc:51:27: error: 'ios' has not been declared
   51 |         auto __PRE_RUN__=(ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),(cout<<fixed<<setprecision(11)), 0);
      |                           ^~~
a.cc:51:52: error: 'cin' was not declared in this scope
   51 |         auto __PRE_RUN__=(ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),(cout<<fixed<<setprecision(11)), 0);
      |                                                    ^~~
a.cc:51:64: error: 'cout' was not declared in this scope
   51 |         auto __PRE_RUN__=(ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),(cout<<fixed<<setprecision(11)), 0);
      |                                                                ^~~~
a.cc:51:77: error: 'cout' was not declared in this scope
   51 |         auto __PRE_RUN__=(ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),(cout<<fixed<<setprecision(11)), 0);
      |                                                                             ^~~~
a.cc:51:83: error: 'fixed' was not declared in this scope
   51 |         auto __PRE_RUN__=(ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),(cout<<fixed<<setprecision(11)), 0);
      |                                                                                   ^~~~~
a.cc:51:90: error: 'setprecision' was not declared in this scope
   51 |         auto __PRE_RUN__=(ios::sync_with_stdio(0), cin.tie(0), cout.tie(0),(cout<<fixed<<setprecision(11)), 0);
      |                                                                                          ^~~~~~~~~~~~
a.cc:55:14: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   55 | int sz(const auto& x){return x.size();}
      |              ^~~~
a.cc:56:12: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   56 | auto split(auto s, auto p){
      |            ^~~~
a.cc:56:20: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   56 | auto split(auto s, auto p){
      |                    ^~~~
a.cc: In function 'auto split(auto:3, auto:4)':
a.cc:57:9: error: 'Arr' was not declared in this scope; did you mean 'ARR'?
   57 |         Arr<decltype(s)> ret;
      |         ^~~
      |         ARR
a.cc:57:13: error: expected primary-expression before 'decltype'
   57 |         Arr<decltype(s)> ret;
      |             ^~~~~~~~~~~
a.cc:60:17: error: 'ret' was not declared in this scope; did you mean 'rep'?
   60 |                 ret.pushb({it1, it2});
      |                 ^~~
      |                 rep
a.cc:61:9: error: 'ret' was not declared in this scope; did you mean 'rep'?
   61 |         ret.pushb({it1,s.end()});
      |         ^~~
      |         rep
a.cc: At global scope:
a.cc:65:1: error: 'Arr' does not name a type
   65 | Arr<int> range(int n){ Arr<int> ret(n); rep(i,n)ret[i]=i; return ret; }
      | ^~~
a.cc:66:21: warning: use of 'auto' in parameter declaration only available with '-std=c++20' or '-fconcepts'
   66 | struct defer{ defer(auto f):f(f){} ~defer(){f();} function<void()> f; };
      |                     ^~~~
a.cc:66:51: error: 'function' does not name a type; did you mean 'union'?
   66 | struct defer{ defer(auto f):f(f){} ~defer(){f();} function<void()> f; };
      |                                                   ^~~~~~~~
      |                                                   union
a.cc: In constructor 'defer::defer(auto:5)':
a.cc:66:29: error: class 'defer' does not have any field named 'f'
   66 | struct defer{ defer(auto f):f(f){} ~defer(){f();} function<void()> f; };
      |                             ^
a.cc: In destructor 'defer::~defer()':
a.cc:66:45: error: 'f' was not declared in this scope; did you mean 'fi'?
   66 | struct defer{ defer(auto f):f(f){} ~defer(){f();} function<void()> f; };
      |                                             ^
      |                                             fi
a.cc: At global scope:
a.cc:73:14: error: 'pair' does not name a type
   73 | using pint = pair<int,int>;
      |              ^~~~
a.cc:74:14: error: 'tuple' does not name a type
   74 | using tint = tuple<int,int,int>;
      |              ^~~~~
a.cc: In function 'int main()':
a.cc:77:16: error: 'cin' was not declared in this scope
   77 |         int z; cin>>z;
      |                ^~~
a.cc:82:39: error: 'sqrt' was not declared in this scope; did you mean 'sq'?
   82 |                         int z=(-(x+y)+sqrt((x+y)*(x+y)-4*(x*x+y*y+x*y-n)))/2;
      |                                       ^~~~
      |                                       sq
a.cc:86:9: error: 'cout' was not declared in this scope
   86 |         cout<<ans<<endl;
      |         ^~~~