0_0_27889936_20866.cpp:8:1: error: expected initializer before 'int'
int x;
^
0_0_27889936_20866.cpp: In function 'int main()':
0_0_27889936_20866.cpp:14:7: error: 'x' was not declared in this scope
cin>>x;
^
0_0_27889936_20866.cpp:19:24: error: ISO C++ forbids applying 'sizeof' to an expression of function type [-fpermissive]
memset(next,0,sizeof next);
^
0_0_27889936_20866.cpp:19:28: error: cannot resolve overloaded function 'next' based on conversion to type 'void*'
memset(next,0,sizeof next);
^
0_0_27889936_20866.cpp:24:8: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[0]=-1;
^
0_0_27889936_20866.cpp:25:8: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[1]=0;
^
0_0_27889936_20866.cpp:28:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
j=next[i-1];
^
0_0_27889936_20866.cpp:36:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
j=next[j];
^
0_0_27889936_20866.cpp:38:9: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[i]=j+1;
^
0_0_27889936_20866.cpp:53:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
j=next[j];
^
0_0_27889936_20866.cpp:59:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
j=next[j];
^
|