0_0_23033538_14864.cpp: In function 'int main()':
0_0_23033538_14864.cpp:23:30: error: request for member 'clear' in 'edge', which is of non-class type 'std::vector<int> [100010]'
edge.clear();
^
0_0_23033538_14864.cpp:24:27: error: incompatible types in assignment of 'int' to 'int [100010]'
ru=0;
^
0_0_23033538_14864.cpp:25:28: error: incompatible types in assignment of 'int' to 'int [100010]'
vis=0;
^
0_0_23033538_14864.cpp:34: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_23033538_14864.cpp:36:27: error: lvalue required as increment operand
ru++;ru[a]++;
^
0_0_23033538_14864.cpp:41:31: error: incompatible types in assignment of 'int [100010]' to 'int [2]'
res[1]=val;
^
0_0_23033538_14864.cpp:42:31: error: incompatible types in assignment of 'int' to 'int [2]'
res[0]=0;
^
0_0_23033538_14864.cpp:47:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(ru==1)
^
0_0_23033538_14864.cpp:58:45: error: cannot convert 'std::vector<int>' to 'int' in initialization
int y=edge[x];
^
0_0_23033538_14864.cpp:77:65: error: invalid conversion from 'int*' to 'int' [-fpermissive]
rs[0][0]=rs[0][1]=rs[1][0]=res[0];
^
0_0_23033538_14864.cpp:78:47: error: invalid conversion from 'int*' to 'int' [-fpermissive]
rs[1][1]=res[1];
^
0_0_23033538_14864.cpp:80:36: error: incompatible types in assignment of 'int' to 'int [100010]'
vis=1;
^
0_0_23033538_14864.cpp:99:55: error: incompatible types in assignment of 'const int*' to 'int [2]'
nrs[0]=max(rs[0],rs[1])+res[x][0];
^
0_0_23033538_14864.cpp:100:55: error: incompatible types in assignment of 'int*' to 'int [2]'
nrs[1]=rs[0]+max(res[x][0],res[x][1]);
^
0_0_23033538_14864.cpp:104:62: error: invalid array assignment
rs[v]=nrs[v];
^
|