I have a doubt with a class
in which I implement a vector with all its functions, what happens is that when compiling, in the main I get an error that I do not understand, I have reviewed my code and I can not find an error.
This is the main:
#include<iostream>
#include<vector>
#include<cassert>
#include "vector.hpp"
using namespace std;
int main void(){
vector a;
vector<int> a1(8);
a1 = {2,3,4,8,7,6,5,1};
vector<int> a2(8);
a2 = {4,5,8,9,2,8,7,6};
a.suma(a1,a2);
}
This is the error:
7:10: error: expected initializer before ‘void’
int main void(){
refiriéndose a 'int main void()'
Thank you for your help. Thank you.