+ 25

Why did vector won't work in codeblocks?

Everytime I run vector , error message will say... "it must be initialized by constructor, not be'{...}' And; could not convert '{1, 2, 3, 4, 5, 6}' from '<brace-enclosed initializer list>' to std::vector<int>" What should I do?

28th Jun 2019, 9:14 AM
MCGAmedCoder gamerArtist
MCGAmedCoder gamerArtist - avatar
5 Réponses
+ 14
Yes pur80a
28th Jun 2019, 10:19 AM
MCGAmedCoder gamerArtist
MCGAmedCoder gamerArtist - avatar
+ 13
Thank you ~ swim ~ ... i have [-std=c++14] ☺ vector is working now... wow!
28th Jun 2019, 10:36 AM
MCGAmedCoder gamerArtist
MCGAmedCoder gamerArtist - avatar
+ 4
Is this a cpp related question?
28th Jun 2019, 10:18 AM
pur80a
pur80a - avatar