Main.cc: In function ‘int main()’:
Main.cc:32:7: error: ‘n’ was not declared in this scope
inti(n)
^
Main.cc:32:2: error: ‘inti’ was not declared in this scope
inti(n)
^~~~
Main.cc:32:2: note: suggested alternative: ‘int’
inti(n)
^~~~
int
Main.cc:37:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", money+i);
~~~~~^~~~~~~~~~~~~~~