Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 11.0.0 20201218 (experimental)

Options
Boost 1.73.0
C++2a(GNU)
no pedantic

all.hpp

$ g++ prog.cc -I/opt/wandbox/boost-1.73.0/gcc-head/include -std=gnu++2a
arr                                                         9 36 23 77 45 22 25 44 73 34 96 70 19 88 89 24 71 73 15 53 
distance(arr.cbegin(), min_el)                              0
*min_el                                                     9
distance(arr.cbegin(), max_el)                              10
*max_el                                                     96
distance(b, e) + 1                                          12
sum                                                         484
avg                                                         40.3333
Exit Code:
0