Main.c:29:5: error: redefinition of 'main'
int main()
^
Main.c:4:5: note: previous definition of 'main' was here
int main()
^
Main.c: In function 'main':
Main.c:13:13: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%f",&surplus[i]);
^
Main.c: In function 'main':
Main.c:38:13: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%f",&surplus);
^