fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. #include <string>
  6.  
  7. void func(std::string str)
  8. {
  9. }
  10.  
  11. void my_func()
  12. {
  13. func(false);
  14. }
  15.  
  16. int main(){
  17. my_func();
  18. return 0;
  19. }
Runtime error #stdin #stdout #stderr 0s 3224KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid