Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 8 years ago

Language

Compiler

Options

Author

anonymous

almost 8 years ago

$
prog.cc: In function 'int main()':
prog.cc:8:13: error: 'a' was not declared in this scope
     int b = a + 6;
             ^
prog.cc:8:13: note: suggested alternative:
prog.cc:3:8: note:   'X::a'
    int a = 5;
        ^
prog.cc:8:9: warning: unused variable 'b' [-Wunused-variable]
     int b = a + 6;
         ^
Exit Code:
1