Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc 11.1.0

Options
Warnings
Boost 1.79.0
C++17
no pedantic

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-gcc-11.1.0/include -std=c++17
prog.cc: In function 'int main()':
prog.cc:8:24: warning: left operand of comma operator has no effect [-Wunused-value]
    8 |     std::cout << array[0,1,2,3];
      |                        ^
prog.cc:8:28: warning: right operand of comma operator has no effect [-Wunused-value]
    8 |     std::cout << array[0,1,2,3];
      |                            ^
prog.cc:8:30: warning: right operand of comma operator has no effect [-Wunused-value]
    8 |     std::cout << array[0,1,2,3];
      |                              ^
3
Exit Code:
0