fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. printf("CHAR_MIN = %d",CHAR_MIN);
  6. printf("CHAR_MAX = %d",CHAR_MAX);
  7. printf("UCHAR_MAX = %d",UCHAR_MAX);
  8. printf("SHORT_MIN = %d",SHORT_MIN);
  9. printf("SHORT_MAX = %d",SHORT_MAX);
  10. printf("USHORT_MAX = %d",USHORT_MAX);
  11. printf("INT_MIN = %d",INT_MIN);
  12. printf("INT_MAX = %d",INT_MAX);
  13. printf("UINT_MAX = %u",UINT_MAX);
  14. printf("LONG_MIN = %I64d",LONG_MIN);
  15. printf("LONG_MAX = %I64d",LONG_MAX);
  16. printf("ULONG_MAX = %I64u",ULONG_MAX);
  17. printf("EMPTY_VALUE = %.16e",EMPTY_VALUE);
  18. printf("DBL_MIN = %.16e",DBL_MIN);
  19. printf("DBL_MAX = %.16e",DBL_MAX);
  20. printf("DBL_EPSILON = %.16e",DBL_EPSILON);
  21. printf("DBL_DIG = %d",DBL_DIG);
  22. printf("DBL_MANT_DIG = %d",DBL_MANT_DIG);
  23. printf("DBL_MAX_10_EXP = %d",DBL_MAX_10_EXP);
  24. printf("DBL_MAX_EXP = %d",DBL_MAX_EXP);
  25. printf("DBL_MIN_10_EXP = %d",DBL_MIN_10_EXP);
  26. printf("DBL_MIN_EXP = %d",DBL_MIN_EXP);
  27. printf("FLT_MIN = %.8e",FLT_MIN);
  28. printf("FLT_MAX = %.8e",FLT_MAX);
  29. printf("FLT_EPSILON = %.8e",FLT_EPSILON);
  30. } return 0;
  31. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:5:25: error: 'CHAR_MIN' was not declared in this scope
  printf("CHAR_MIN = %d",CHAR_MIN);
                         ^
prog.cpp:5:33: error: 'printf' was not declared in this scope
  printf("CHAR_MIN = %d",CHAR_MIN);
                                 ^
prog.cpp:6:27: error: 'CHAR_MAX' was not declared in this scope
    printf("CHAR_MAX = %d",CHAR_MAX);
                           ^
prog.cpp:7:28: error: 'UCHAR_MAX' was not declared in this scope
    printf("UCHAR_MAX = %d",UCHAR_MAX);
                            ^
prog.cpp:8:28: error: 'SHORT_MIN' was not declared in this scope
    printf("SHORT_MIN = %d",SHORT_MIN);
                            ^
prog.cpp:9:28: error: 'SHORT_MAX' was not declared in this scope
    printf("SHORT_MAX = %d",SHORT_MAX);
                            ^
prog.cpp:10:29: error: 'USHORT_MAX' was not declared in this scope
    printf("USHORT_MAX = %d",USHORT_MAX);
                             ^
prog.cpp:11:26: error: 'INT_MIN' was not declared in this scope
    printf("INT_MIN = %d",INT_MIN);
                          ^
prog.cpp:12:26: error: 'INT_MAX' was not declared in this scope
    printf("INT_MAX = %d",INT_MAX);
                          ^
prog.cpp:13:27: error: 'UINT_MAX' was not declared in this scope
    printf("UINT_MAX = %u",UINT_MAX);
                           ^
prog.cpp:14:30: error: 'LONG_MIN' was not declared in this scope
    printf("LONG_MIN = %I64d",LONG_MIN);
                              ^
prog.cpp:15:30: error: 'LONG_MAX' was not declared in this scope
    printf("LONG_MAX = %I64d",LONG_MAX);
                              ^
prog.cpp:16:31: error: 'ULONG_MAX' was not declared in this scope
    printf("ULONG_MAX = %I64u",ULONG_MAX);
                               ^
prog.cpp:17:33: error: 'EMPTY_VALUE' was not declared in this scope
    printf("EMPTY_VALUE = %.16e",EMPTY_VALUE);
                                 ^
prog.cpp:18:29: error: 'DBL_MIN' was not declared in this scope
    printf("DBL_MIN = %.16e",DBL_MIN);
                             ^
prog.cpp:19:29: error: 'DBL_MAX' was not declared in this scope
    printf("DBL_MAX = %.16e",DBL_MAX);
                             ^
prog.cpp:20:33: error: 'DBL_EPSILON' was not declared in this scope
    printf("DBL_EPSILON = %.16e",DBL_EPSILON);
                                 ^
prog.cpp:21:26: error: 'DBL_DIG' was not declared in this scope
    printf("DBL_DIG = %d",DBL_DIG);
                          ^
prog.cpp:22:31: error: 'DBL_MANT_DIG' was not declared in this scope
    printf("DBL_MANT_DIG = %d",DBL_MANT_DIG);
                               ^
prog.cpp:23:34: error: 'DBL_MAX_10_EXP' was not declared in this scope
    printf("DBL_MAX_10_EXP =  %d",DBL_MAX_10_EXP);
                                  ^
prog.cpp:24:30: error: 'DBL_MAX_EXP' was not declared in this scope
    printf("DBL_MAX_EXP = %d",DBL_MAX_EXP);
                              ^
prog.cpp:25:33: error: 'DBL_MIN_10_EXP' was not declared in this scope
    printf("DBL_MIN_10_EXP = %d",DBL_MIN_10_EXP);
                                 ^
prog.cpp:26:30: error: 'DBL_MIN_EXP' was not declared in this scope
    printf("DBL_MIN_EXP = %d",DBL_MIN_EXP);
                              ^
prog.cpp:27:28: error: 'FLT_MIN' was not declared in this scope
    printf("FLT_MIN = %.8e",FLT_MIN);
                            ^
prog.cpp:28:28: error: 'FLT_MAX' was not declared in this scope
    printf("FLT_MAX = %.8e",FLT_MAX);
                            ^
prog.cpp:29:32: error: 'FLT_EPSILON' was not declared in this scope
    printf("FLT_EPSILON = %.8e",FLT_EPSILON);
                                ^
prog.cpp: At global scope:
prog.cpp:30:5: error: expected unqualified-id before 'return'
   } return 0;
     ^
prog.cpp:31:1: error: expected declaration before '}' token
 }
 ^
stdout
Standard output is empty