fork download
  1. #include <vector>
  2.  
  3. std::vector <unsigned long long int> triangleNumbers(0);
  4.  
  5. int main()
  6. {
  7. triangleNumbers.at(0)=10000000000;
  8. }
  9.  
Runtime error #stdin #stdout #stderr 0s 3464KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
terminate called after throwing an instance of 'std::out_of_range'
  what():  vector::_M_range_check: __n (which is 0) >= this->size() (which is 0)