./Main.cpp: In function ‘int main()’:
./Main.cpp:7:56: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘double’ [-Wformat=]
printf("%d\n", (s1*e1)*0.1 + (s2*e2)*0.1 + (s3*e3)*0.1);
^
./Main.cpp:4:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &s1, &e1);
^
./Main.cpp:5:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &s2, &e2);
^
./Main.cpp:6:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &s3, &e3);
^