prog.c:17:5: error: redefinition of ‘main’
int main(){
^~~~
prog.c:3:5: note: previous definition of ‘main’ was here
int main(){
^~~~
prog.c:33:5: error: redefinition of ‘main’
int main(){
^~~~
prog.c:3:5: note: previous definition of ‘main’ was here
int main(){
^~~~
prog.c:46:5: error: redefinition of ‘main’
int main(){
^~~~
prog.c:3:5: note: previous definition of ‘main’ was here
int main(){
^~~~
prog.c:71:5: error: redefinition of ‘main’
int main(){
^~~~
prog.c:3:5: note: previous definition of ‘main’ was here
int main(){
^~~~
prog.c: In function ‘main’:
prog.c:7:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~
prog.c: In function ‘main’:
prog.c:21:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~
prog.c: In function ‘main’:
prog.c:37:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%f", &diem);
^~~~~~~~~~~~~~~~~~
prog.c: In function ‘main’:
prog.c:49:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~
prog.c: In function ‘main’:
prog.c:74:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~