Main.cc: In function ‘void spr(int, int, int)’:
Main.cc:10:30: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
10 | if(n==1){bas(i,j);return 0;}
| ^
Main.cc:12:38: error: too many arguments to function ‘void spr(int, int, int)’
12 | spr(i,j+(1<<(n-1)),j+(1<<(n)),n-1);
| ^
Main.cc:9:13: note: declared here
9 | inline void spr(int i,int j,int n){
| ^~~
Main.cc: In function ‘int main()’:
Main.cc:17:10: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
17 | scanf("%d",&n);
| ~~~~~^~~~~~~~~