i have a following code:
#include <vector>
using namespace std;
class A {
int t;
int f;
public:
A(){};
};
class B {
vector <A> a(10);
int y;
public:
B(){};
};
int main(int a, char *b[])
{
B c;
}
when I try to compile Iam getting the error as ...
r.cc:12: error: expected identifier before numeric constant
r.cc:12: error: expected â,â or â...â before numeric constant
Note: no error if I declare the same vector in the main function.