fork download
  1. #include <vector>
  2.  
  3. int main() {
  4. vector<int> v = {1, 2, 3};
  5. return 0;
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:4:2: error: ‘vector’ was not declared in this scope
  vector<int> v = {1, 2, 3};
  ^~~~~~
prog.cpp:4:2: note: suggested alternative:
In file included from /usr/include/c++/6/vector:64:0,
                 from prog.cpp:1:
/usr/include/c++/6/bits/stl_vector.h:214:11: note:   ‘std::vector’
     class vector : protected _Vector_base<_Tp, _Alloc>
           ^~~~~~
prog.cpp:4:9: error: expected primary-expression before ‘int’
  vector<int> v = {1, 2, 3};
         ^~~
stdout
Standard output is empty