News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Unidentified wanrning

Started by Sasha, December 16, 2020, 05:17:30 PM

Previous topic - Next topic

Sasha

Why CB Old Version compiles the following code Successfully with warning on line #8

#include <iostream>
#include <vector>
using namespace std;
int main()
{
    vector <string> strings(7);
    strings[4] = "Busted...";
    cout << strings[4] << endl;
    return 0;
}

sodev

That screenshot is from Eclipse :P

Posting the warning message might also help...

oBFusCATed

Because:
1. You're using different compiler.
2. You're using different set of command line arguments.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

omlk


Sasha

Thank you for correcting me, the warning occurred in Eclipse and in CB also, I have updated to the next old version on windows XP, and everything works fine.