prog.c: In function ‘main’:
prog.c:9:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
printf("la somma totale è %d\n",somma);
^
prog.c:10:1: warning: implicit declaration of function ‘system’ [-Wimplicit-function-declaration]
system ("pause")
^~~~~~
prog.c:12:2: error: expected ‘;’ before ‘return’
return 0;
^~~~~~