Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc: In function 'int main()':
prog.cc:12:18: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'std::__cxx11::string' {aka 'std::__cxx11::basic_string<char>'} [-Wformat=]
     sprintf(buf, "%s %s\n", str1, str2);
                  ^~~~~~~~~
prog.cc:12:18: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'std::__cxx11::string' {aka 'std::__cxx11::basic_string<char>'} [-Wformat=]
  
Exit Code:
0