mingw32-g++.exe -c C:\Users\MMiKE\Desktop\С++\main.cpp -o C:\Users\MMiKE\Desktop\С++\main.o
C:\Users\MMiKE\Desktop\С++\main.cpp: In function 'int main()':
C:\Users\MMiKE\Desktop\С++\main.cpp:6:27: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
std::vector < float > vec { 6.4f , 0.8f , 1.7f , 10.6f , 4.7f , 9.3f , 7.1f , 5.43f , 4.2f } ;
^
C:\Users\MMiKE\Desktop\С++\main.cpp:6:96: error: in C++98 'vec' must be initialized by constructor, not by '{...}'
std::vector < float > vec { 6.4f , 0.8f , 1.7f , 10.6f , 4.7f , 9.3f , 7.1f , 5.43f , 4.2f } ;
^
C:\Users\MMiKE\Desktop\С++\main.cpp:6:96: error: no matching function for call to 'std::vector<float>::vector(<brace-enclosed initializer list>)'
C:\Users\MMiKE\Desktop\С++\main.cpp:6:96: note: candidates are:
In file included from c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\vector:64:0,
from C:\Users\MMiKE\Desktop\С++\main.cpp:3:
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:398:9: note: template<class _InputIterator> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:398:9: note: template argument deduction/substitution failed:
C:\Users\MMiKE\Desktop\С++\main.cpp:6:96: note: cannot convert '1.70000005e+0f' (type 'float') to type 'const allocator_type& {aka const std::allocator<float>&}'
std::vector < float > vec { 6.4f , 0.8f , 1.7f , 10.6f , 4.7f , 9.3f , 7.1f , 5.43f , 4.2f } ;
^
In file included from c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\vector:64:0,
from C:\Users\MMiKE\Desktop\С++\main.cpp:3:
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:310:7: note: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = float; _Alloc = std::allocator<float>]
vector(const vector& __x)
^
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:310:7: note: candidate expects 1 argument, 9 provided
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:295:7: note: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = float; _Alloc = std::allocator<float>; std::vector<_Tp, _Alloc>::size_type = unsigned int; std::vector<_Tp, _Alloc>::value_type = float; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<float>]
vector(size_type __n, const value_type& __value = value_type(),
^
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:295:7: note: candidate expects 3 arguments, 9 provided
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:256:7: note: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = float; _Alloc = std::allocator<float>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<float>]
vector(const allocator_type& __a)
^
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:256:7: note: candidate expects 1 argument, 9 provided
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:248:7: note: std::vector<_Tp, _Alloc>::vector() [with _Tp = float; _Alloc = std::allocator<float>]
vector()
^
c:\program files (x86)\codeblocks\mingw\lib\gcc\mingw32\4.8.1\include\c++\bits\stl_vector.h:248:7: note: candidate expects 0 arguments, 9 provided
C:\Users\MMiKE\Desktop\С++\main.cpp:8:16: error: 'x' does not name a type
for ( auto x : vec )
^
C:\Users\MMiKE\Desktop\С++\main.cpp:10:5: error: expected ';' before 'std'
std::cout << std::endl ;
^
C:\Users\MMiKE\Desktop\С++\main.cpp:11:1: error: expected primary-expression before '}' token
}
^
C:\Users\MMiKE\Desktop\С++\main.cpp:11:1: error: expected ')' before '}' token
C:\Users\MMiKE\Desktop\С++\main.cpp:11:1: error: expected primary-expression before '}' token
C:\Users\MMiKE\Desktop\С++\main.cpp:11:1: error: expected ';' before '}' token
Process terminated with status 1 (0 minute(s), 0 second(s))
8 error(s), 1 warning(s) (0 minute(s), 0 second(s))