Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20200910 (experimental)

Options
Warnings
Boost 1.73.0
C++2a
-pedantic

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=c++2a -pedantic
prog.cc: In function 'int main()':
prog.cc:12:27: warning: top-level comma expression in array subscript is deprecated [-Wcomma-subscript]
   12 |     printf("\n%d",arr[0][1,0]);   // C4709
      |                           ^
prog.cc:12:26: warning: left operand of comma operator has no effect [-Wunused-value]
   12 |     printf("\n%d",arr[0][1,0]);   // C4709
      |                          ^

10
Exit Code:
0