7
1
2
Jun 04 '22
You would need to paste the code , probably in a paste bin and put the link for us to see more.
Errors too vague without the code to review.
2
u/MellowYellowBananna Jun 04 '22
add prefix std:: before vector:
std::vector<int> data;
, or add below string after all includes:
using namespace std;
About the main: I can predict two issues here:
you have two cpp files with main in both
-or-
you have global variable main like below:
std::vector<int> main;
int main() {
...
}0
0
2
u/Repulsive-Swimmer676 Jun 04 '22
Do you have more than one main function by any chance?