fork(1) download
  1. #include <array>
  2.  
  3. int main()
  4. {
  5. std::array<int, 2> a = {1, 2};
  6. std::array<int, 2> b{a};
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:24: error: cannot convert ‘std::array<int, 2u>’ to ‘int’ in initialization
  std::array<int, 2> b{a};
                        ^
prog.cpp:6:21: warning: unused variable ‘b’ [-Wunused-variable]
  std::array<int, 2> b{a};
                     ^
stdout
Standard output is empty