Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190515 (experimental)

Options
Warnings
Optimization
Don't Use Boost
C++2a
no pedantic
Raw compiler options
-pedantic -pthread

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -std=c++2a -pedantic -pthread
prog.cc:1:21: error: 'size_t' has not been declared
    1 |   template<class T, size_t  N>
      |                     ^~~~~~
prog.cc:2:25: error: 'array' in namespace 'std' does not name a template type
    2 |   static constexpr std::array<T, N> Transpose(std::array<T, N> arr)
      |                         ^~~~~
prog.cc:1:1: note: 'std::array' is defined in header '<array>'; did you forget to '#include <array>'?
  +++ |+#include <array>
    1 |   template<class T, size_t  N>
Exit Code:
1