Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 10 years ago

Language

Compiler

Options

Author

anonymous

about 10 years ago

$
prog.cc:6:15: error: 'func' declared as function returning an array
 int (func())[5]
               ^
prog.cc: In function 'int main()':
prog.cc:13:18: error: 'func' was not declared in this scope
     cout << func()[2] << endl;
                  ^
Exit Code:
1