Main.cc: In function ‘int main()’:
Main.cc:4:12: error: expected initializer before ‘y1’
int money y1,y2,y5,total=0;
^~
Main.cc:5:7: error: ‘money’ was not declared in this scope
cin>>money;
^~~~~
Main.cc:7:30: error: expected ‘)’ before ‘;’ token
for(int i=1;i<=money/5-1;i++;){
^
Main.cc:7:2: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for(int i=1;i<=money/5-1;i++;){
^~~
Main.cc:7:31: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
for(int i=1;i<=money/5-1;i++;){
^
Main.cc:7:31: error: expected primary-expression before ‘)’ token
Main.cc:12:8: error: ‘total’ was not declared in this scope
cout<