fork download
  1.  
  2. #include <stdio.h>
  3. #include <locale.h>
  4.  
  5. int main(void)
  6. {
  7. int a,b,c,d,bb,bm,mb,mm,ans;
  8. printf_s("Vvedite chisla a,b,c,d:");
  9. scanf_s("%a", &a);
  10. scanf_s("%b", &b);
  11. scanf_s("%c", &c);
  12. scanf_s("%d", &d);
  13. if (a>b)
  14. {
  15. bm=a;
  16. mm=b;
  17. }
  18. else {
  19. bm=b;
  20. mm=a;
  21. }
  22. if (c>d)
  23. {
  24. bb=c;
  25. mb=d;
  26. }
  27. else {
  28. bb=d;
  29. mb=c;
  30. }
  31. if ((bb>bm) && (mb>mm)) ans=1;
  32. else ans=0;
  33. printf_s("ans", &ans);
  34. getch();
  35. }
  36.  
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:35: error: ‘printf_s’ was not declared in this scope
 printf_s("Vvedite chisla a,b,c,d:");
                                   ^
prog.cpp:9:17: error: ‘scanf_s’ was not declared in this scope
 scanf_s("%a", &a);
                 ^
prog.cpp:34:7: error: ‘getch’ was not declared in this scope
 getch();
       ^
stdout
Standard output is empty