fork download
  1. #include <stdio.h>
  2. #define OFFSET 7.64
  3. #define SCALE 0.325
  4. main()
  5. {
  6. /*пересчет размера обуви в размер ноги в дюймах*/
  7. float shoe, foot;
  8. printf (" Размер обуви (мужской) размер ноги\n");
  9. shoe=3.0;
  10. while(shoe<18.5);
  11. {
  12. foot=SCALE*shoe+OFFEST;
  13. printf(" %10 1f %13 2f %16 2f дюйма\n", shoe, foot);
  14. shoe=shoe+1.0;
  15. }
  16. printf (" Если эта обувь годится вам, носите ее\n");
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:4:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main()
 ^~~~
prog.c: In function ‘main’:
prog.c:10:2: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
  while(shoe<18.5);
  ^~~~~
prog.c:11:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’
  {
  ^
prog.c:12:19: error: ‘OFFEST’ undeclared (first use in this function); did you mean ‘OFFSET’?
   foot=SCALE*shoe+OFFEST;
                   ^~~~~~
                   OFFSET
prog.c:12:19: note: each undeclared identifier is reported only once for each function it appears in
prog.c:13:15: warning: unknown conversion type character ‘ ’ in format [-Wformat=]
   printf(" %10 1f %13 2f %16 2f дюйма\n", shoe, foot);
               ^
prog.c:13:22: warning: unknown conversion type character ‘ ’ in format [-Wformat=]
   printf(" %10 1f %13 2f %16 2f дюйма\n", shoe, foot);
                      ^
prog.c:13:29: warning: unknown conversion type character ‘ ’ in format [-Wformat=]
   printf(" %10 1f %13 2f %16 2f дюйма\n", shoe, foot);
                             ^
prog.c:13:10: warning: too many arguments for format [-Wformat-extra-args]
   printf(" %10 1f %13 2f %16 2f дюйма\n", shoe, foot);
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
stdout
Standard output is empty