prog.c: In function ‘main’:
prog.c:19:10: warning: variable ‘s’ set but not used [-Wunused-but-set-variable]
{int s, a, h;
^
prog.c:23:5: error: break statement not within loop or switch
break;
^~~~~
prog.c:24:9: error: case label not within a switch statement
case 'E':
^~~~
prog.c:25:14: warning: variable ‘s’ set but not used [-Wunused-but-set-variable]
{int s, a, b;
^
prog.c:30:9: error: break statement not within loop or switch
break;
^~~~~
prog.c:31:13: error: case label not within a switch statement
case 'M':
^~~~
prog.c:32:18: warning: variable ‘s’ set but not used [-Wunused-but-set-variable]
{int s, p, a;
^
prog.c:36:13: error: break statement not within loop or switch
break;
^~~~~
prog.c:37:43: error: expected ‘:’ or ‘...’ before ‘;’ token
case puts ("Ошибка");
^
prog.c:15:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%c", &I);
^~~~~~~~~~~~~~~~
prog.c:20:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &a);
^~~~~~~~~~~~~~~~
prog.c:21:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &h);
^~~~~~~~~~~~~~~~
prog.c:27:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &a);
^~~~~~~~~~~~~~~~
prog.c:28:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &b);
^~~~~~~~~~~~~~~~
prog.c:33:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &p);
^~~~~~~~~~~~~~~~
prog.c:34:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &a);
^~~~~~~~~~~~~~~~