fork download
  1. #include <iostream>
  2. int main(){
  3. #if 1
  4. auto number = 0ULL;// xFFFFFFFFULL;
  5. #else
  6. auto number = 0xFFFFFFFFFFFFULL;
  7. #endif
  8. const auto last = number + (1ULL<<34);
  9. for(auto i=number; i <= last; ++i){
  10. number += i;
  11. }
  12. std::cout << number << std::endl;
  13. }
  14.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:4: error: ISO C++ forbids declaration of ‘number’ with no type
prog.cpp:8: error: ISO C++ forbids declaration of ‘last’ with no type
prog.cpp:9: error: ISO C++ forbids declaration of ‘i’ with no type
stdout
Standard output is empty