Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 7 years ago

Language

Compiler

Options

Author

anonymous

about 7 years ago

a.h

$
prog.cc:3:16: error: '::main' must return 'int'
 void main(int x) {
                ^
prog.cc:3:6: warning: 'int main(int)' takes only zero or two arguments [-Wmain]
 void main(int x) {
      ^~~~
prog.cc: In function 'int main(int)':
prog.cc:3:15: warning: unused parameter 'x' [-Wunused-parameter]
 void main(int x) {
           ~~~~^
Exit Code:
1