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