Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190517 (experimental)

Options
Don't Use Boost
C++11
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -std=c++11
prog.cc: In function 'int main()':
prog.cc:16:5: warning: exception of type 'std::out_of_range' will be caught
   16 |   } catch (std::out_of_range& e) {
      |     ^~~~~
prog.cc:14:5: warning:    by earlier handler for 'std::exception'
   14 |   } catch (std::exception& e) {
      |     ^~~~~
exception: vector::_M_range_check: __n (which is 20) >= this->size() (which is 10)
Exit Code:
0