Language: C++

a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      | ^
a.cc:1:23: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                       ^~~~
a.cc: In function 'int main()':
a.cc:1:46: error: 'n' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                              ^
a.cc:1:34: error: 'scanf' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                  ^~~~~
a.cc:1:71: error: 'b' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                       ^
a.cc:1:74: error: 'f' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                          ^
a.cc:1:77: error: 'r' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                             ^
a.cc:1:80: error: 'v' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                ^
a.cc:1:83: error: 'a' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                   ^
a.cc:1:102: error: 'b' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                                      ^
a.cc:1:117: error: 'puts' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                                                     ^~~~
a.cc:1:150: error: 'f' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                                                                                      ^
a.cc:1:173: error: 'r' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                                                                                                             ^
a.cc:1:197: error: 'a' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                                                                                                                                     ^
a.cc:1:184: error: 'printf' was not declared in this scope
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}
      |                                                                                                                                                                                        ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | a[9][9][11],b,f,r,v,n;main(){for(scanf("%d",&n);n--;scanf("%d%d%d%d",&b,&f,&r,&v),a[b][f][r]+=v);for(b=0;b++<4;b>3?:puts("####################"))for(f=0;f++<3;puts(""))for(r=0;r++<10;printf(" %d",a[b][f][r]));}