0_0_20970077_12467.cpp: In function 'int main()':
0_0_20970077_12467.cpp:29:30: error: request for member 'clear' in 'edge', which is of non-class type 'std::vector<int> [100010]'
edge.clear();
^
0_0_20970077_12467.cpp:30:27: error: incompatible types in assignment of 'int' to 'int [100010]'
ru=0;
^
0_0_20970077_12467.cpp:31:28: error: incompatible types in assignment of 'int' to 'int [100010]'
vis=0;
^
0_0_20970077_12467.cpp:40:30: error: request for member 'push_back' in 'edge', which is of non-class type 'std::vector<int> [100010]'
edge.push_back(a);
^
0_0_20970077_12467.cpp:42:27: error: lvalue required as increment operand
ru++;ru[a]++;
^
0_0_20970077_12467.cpp:47:31: error: incompatible types in assignment of 'int [100010]' to 'int [2]'
res[1]=val;
^
0_0_20970077_12467.cpp:48:31: error: incompatible types in assignment of 'int' to 'int [2]'
res[0]=0;
^
0_0_20970077_12467.cpp:53:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(ru==1)
^
0_0_20970077_12467.cpp:64:45: error: cannot convert 'std::vector<int>' to 'int' in initialization
int y=edge[x];
^
0_0_20970077_12467.cpp:83:65: error: invalid conversion from 'int*' to 'int' [-fpermissive]
rs[0][0]=rs[0][1]=rs[1][0]=res[0];
^
0_0_20970077_12467.cpp:84:47: error: invalid conversion from 'int*' to 'int' [-fpermissive]
rs[1][1]=res[1];
^
0_0_20970077_12467.cpp:86:36: error: incompatible types in assignment of 'int' to 'int [100010]'
vis=1;
^
0_0_20970077_12467.cpp:105:55: error: incompatible types in assignment of 'const int*' to 'int [2]'
nrs[0]=max(rs[0],rs[1])+res[x][0];
^
0_0_20970077_12467.cpp:106:55: error: incompatible types in assignment of 'int*' to 'int [2]'
nrs[1]=rs[0]+max(res[x][0],res[x][1]);
^
0_0_20970077_12467.cpp:110:62: error: invalid array assignment
rs[v]=nrs[v];
^
|