Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

almost 7 years ago

Language

C++

Compiler

clang HEAD 8.0.0 (https://github.com/llvm-mirror/clang.git dc879fa93a767a8e7d4c6b542c905f3194084a2e) (https://github.com/llvm-mirror/llvm.git abc5ee601c586f6d3a9524a1f68bfb86000e6cb5)

Options
Warnings
Boost 1.68.0
C++11
-pedantic

Author

anonymous

almost 7 years ago

a.h

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/clang-head/include -std=c++11 -pedantic
prog.cc:8:18: warning: variable length arrays are a C99 feature [-Wvla-extension]
    int opt[rows][cols] = {0};
                 ^
prog.cc:8:12: warning: variable length arrays are a C99 feature [-Wvla-extension]
    int opt[rows][cols] = {0};
           ^
prog.cc:8:13: error: variable-sized object may not be initialized
    int opt[rows][cols] = {0};
            ^~~~
2 warnings and 1 error generated.
Exit Code:
1