SHARE
TWEET

Untitled

a guest Jun 26th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. math.cpp: In function 'std::__cxx11::string quest(std::__cxx11::string, std::__cxx11::string)':
  2. math.cpp:10:17: error: invalid conversion from 'std::__cxx11::string (*)(std::__cxx11::string, std::__cxx11::string) {aka std::__cxx11::basic_string<char> (*)(std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>)}' to 'char' [-fpermissive]
  3.    questionadder=quest;
  4.                  ^~~~~
  5. In file included from c:mingwlibgccmingw326.3.0includec++string:52:0,
  6.                  from c:mingwlibgccmingw326.3.0includec++bitslocale_classes.h:40,
  7.                  from c:mingwlibgccmingw326.3.0includec++bitsios_base.h:41,
  8.                  from c:mingwlibgccmingw326.3.0includec++ios:42,
  9.                  from c:mingwlibgccmingw326.3.0includec++ostream:38,
  10.                  from c:mingwlibgccmingw326.3.0includec++iostream:39,
  11.                  from math.cpp:3:
  12. c:mingwlibgccmingw326.3.0includec++bitsbasic_string.h:600:7: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>& std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::operator=(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
  13.        operator=(_CharT __c)
  14.        ^~~~~~~~
  15. math.cpp:11:8: error: could not convert 'quest' from 'std::__cxx11::string(std::__cxx11::string, std::__cxx11::string) {aka std::__cxx11::basic_string<char>(std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>)}' to 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}'
  16.  return quest;
  17.         ^~~~~
  18. math.cpp: In function 'int main()':
  19. math.cpp:18:41: error: too few arguments to function 'std::__cxx11::string quest(std::__cxx11::string, std::__cxx11::string)'
  20.   firstquest=quest("What is 96541-236547");
  21.                                          ^
  22. math.cpp:7:8: note: declared here
  23.  string quest(string question,string questionadder)
  24.         ^~~~~
  25.      
  26. questionadder=quest;
  27.      
  28. return quest;
  29.      
  30. firstquest=quest("What is 96541-236547");
  31.      
  32. string quest(string question,string questionadder)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top