Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C++

Compiler

gcc 10.1.0

Options
Warnings
Don't Use Boost
Compiler Default
no pedantic

Author

anonymous

over 4 years ago

$ g++ prog.cc -Wall -Wextra
prog.cc: In constructor 'samp::samp()':
prog.cc:12:31: error: invalid conversion from 'char' to 'char*' [-fpermissive]
   12 |     samp() { cout << "a"; s = '\0'; }
      |                               ^~~~
      |                               |
      |                               char
Exit Code:
1