fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. #define BYTE char
  6. #define CPUTYPE_INVALID ((BYTE)-1)
  7.  
  8. #define BYTE2 unsigned char
  9. #define CPUTYPE_INVALID2 ((BYTE2)-1)
  10.  
  11. int main() {
  12. cout << to_string(CPUTYPE_INVALID); // -1
  13. cout << to_string(CPUTYPE_INVALID2); // 255
  14. return 0;
  15. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
-1255