Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef int64_t l;
typedef vector<l> V;
#define r(i,n)for(i=0;i<n;i++)
void c(ll &a,ll b){if(a>b)a=b;}
int main(void){l n,s,k,v,i,j,b;cin>>n;V x(n),y(n),p(n),a(n+1,1LL<<60);vector<V>X(n),Y(n);r(i,n)cin>>x[i]>>y[i]>>p[i];r(i,n){X[i]=v(1<<n,abs(x[i])),Y[i]=v(1<<n,abs(y[i]));r(b,1<<n)rep(j,n)if(b&1<<j)c(X[i][b],abs(x[i]-x[j])),c(Y[i][b],abs(y[i]-y[j]));}r(b,1<<n){s=b;do{k=__builtin_popcountl(b),v=0;rep(i,n)v+=p[i]*min(X[i][s],Y[i][b&~s]);c(a[k],v),s=(s-1)&b;}while(s!=b);}r(i,n+1)cout<<a[i]<<endl;return 0;}

Compiler output:
a.cc:6:6: error: variable or field 'c' declared void
    6 | void c(ll &a,ll b){if(a>b)a=b;}
      |      ^
a.cc:6:8: error: 'll' was not declared in this scope; did you mean 'l'?
    6 | void c(ll &a,ll b){if(a>b)a=b;}
      |        ^~
      |        l
a.cc:6:12: error: 'a' was not declared in this scope
    6 | void c(ll &a,ll b){if(a>b)a=b;}
      |            ^
a.cc:6:14: error: 'll' was not declared in this scope; did you mean 'l'?
    6 | void c(ll &a,ll b){if(a>b)a=b;}
      |              ^~
      |              l
a.cc: In function 'int main()':
a.cc:7:131: error: 'v' cannot be used as a function
    7 | int main(void){l n,s,k,v,i,j,b;cin>>n;V x(n),y(n),p(n),a(n+1,1LL<<60);vector<V>X(n),Y(n);r(i,n)cin>>x[i]>>y[i]>>p[i];r(i,n){X[i]=v(1<<n,abs(x[i])),Y[i]=v(1<<n,abs(y[i]));r(b,1<<n)rep(j,n)if(b&1<<j)c(X[i][b],abs(x[i]-x[j])),c(Y[i][b],abs(y[i]-y[j]));}r(b,1<<n){s=b;do{k=__builtin_popcountl(b),v=0;rep(i,n)v+=p[i]*min(X[i][s],Y[i][b&~s]);c(a[k],v),s=(s-1)&b;}while(s!=b);}r(i,n+1)cout<<a[i]<<endl;return 0;}
      |                                                                                                                                  ~^~~~~~~~~~~~~~~~
a.cc:7:154: error: 'v' cannot be used as a function
    7 | int main(void){l n,s,k,v,i,j,b;cin>>n;V x(n),y(n),p(n),a(n+1,1LL<<60);vector<V>X(n),Y(n);r(i,n)cin>>x[i]>>y[i]>>p[i];r(i,n){X[i]=v(1<<n,abs(x[i])),Y[i]=v(1<<n,abs(y[i]));r(b,1<<n)rep(j,n)if(b&1<<j)c(X[i][b],abs(x[i]-x[j])),c(Y[i][b],abs(y[i]-y[j]));}r(b,1<<n){s=b;do{k=__builtin_popcountl(b),v=0;rep(i,n)v+=p[i]*min(X[i][s],Y[i][b&~s]);c(a[k],v),s=(s-1)&b;}while(s!=b);}r(i,n+1)cout<<a[i]<<endl;return 0;}
      |                                                                                                                                                         ~^~~~~~~~~~~~~~~~
a.cc:7:180: error: 'rep' was not declared in this scope
    7 | int main(void){l n,s,k,v,i,j,b;cin>>n;V x(n),y(n),p(n),a(n+1,1LL<<60);vector<V>X(n),Y(n);r(i,n)cin>>x[i]>>y[i]>>p[i];r(i,n){X[i]=v(1<<n,abs(x[i])),Y[i]=v(1<<n,abs(y[i]));r(b,1<<n)rep(j,n)if(b&1<<j)c(X[i][b],abs(x[i]-x[j])),c(Y[i][b],abs(y[i]-y[j]));}r(b,1<<n){s=b;do{k=__builtin_popcountl(b),v=0;rep(i,n)v+=p[i]*min(X[i][s],Y[i][b&~s]);c(a[k],v),s=(s-1)&b;}while(s!=b);}r(i,n+1)cout<<a[i]<<endl;return 0;}
      |                                                                                                                                                                                    ^~~
a.cc:7:297: error: 'rep' was not declared in this scope
    7 | int main(void){l n,s,k,v,i,j,b;cin>>n;V x(n),y(n),p(n),a(n+1,1LL<<60);vector<V>X(n),Y(n);r(i,n)cin>>x[i]>>y[i]>>p[i];r(i,n){X[i]=v(1<<n,abs(x[i])),Y[i]=v(1<<n,abs(y[i]));r(b,1<<n)rep(j,n)if(b&1<<j)c(X[i][b],abs(x[i]-x[j])),c(Y[i][b],abs(y[i]-y[j]));}r(b,1<<n){s=b;do{k=__builtin_popcountl(b),v=0;rep(i,n)v+=p[i]*min(X[i][s],Y[i][b&~s]);c(a[k],v),s=(s-1)&b;}while(s!=b);}r(i,n+1)cout<<a[i]<<endl;return 0;}
      |                                                                                                                                                                                                                                                                                                         ^~~
a.cc:7:337: error: 'c' was not declared in this scope
    7 | int main(void){l n,s,k,v,i,j,b;cin>>n;V x(n),y(n),p(n),a(n+1,1LL<<60);vector<V>X(n),Y(n);r(i,n)cin>>x[i]>>y[i]>>p[i];r(i,n){X[i]=v(1<<n,abs(x[i])),Y[i]=v(1<<n,abs(y[i]));r(b,1<<n)rep(j,n)if(b&1<<j)c(X[i][b],abs(x[i]-x[j])),c(Y[i][b],abs(y[i]-y[j]));}r(b,1<<n){s=b;do{k=__builtin_popcountl(b),v=0;rep(i,n)v+=p[i]*min(X[i][s],Y[i][b&~s]);c(a[k],v),s=(s-1)&b;}while(s!=b);}r(i,n+1)cout<<a[i]<<endl;return 0;}
      |                                                                                                                                                                                                                                                                                                                                                 ^