Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

2 days ago

Language

C++

Compiler

gcc 13.2.0

Options
Warnings
Boost 1.83.0
C++2b(GNU)
no pedantic

Author

anonymous

2 days ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.83.0-gcc-13.2.0/include -std=gnu++2b
prog.cc: In function 'int main()':
prog.cc:8:36: warning: 'arr' is used uninitialized [-Wuninitialized]
    8 |     std::cout << "First: " << arr[0] << std::endl;
      |                                    ^
prog.cc:3:9: note: 'arr' declared here
    3 |     int arr[5];                // declare array of 5 ints (uninitialized)
      |         ^~~
First: 0
Last: 2
1 2 3 0 99 
Exit Code:
0