gondola.cpp: In function 'int valid(int, int*)':
gondola.cpp:13:7: error: invalid types 'int[int]' for array subscript
n[ip]=inputSeq[ip];
^
gondola.cpp:15:7: error: invalid types 'int[int]' for array subscript
n[i]=n[i-1]+1;
^
gondola.cpp:15:14: error: invalid types 'int[int]' for array subscript
n[i]=n[i-1]+1;
^
gondola.cpp:16:11: error: invalid types 'int[int]' for array subscript
if (n[i]>n) n[i]-=n;
^
gondola.cpp:16:19: error: invalid types 'int[int]' for array subscript
if (n[i]>n) n[i]-=n;
^
gondola.cpp:19:7: error: invalid types 'int[int]' for array subscript
n[i]=n[i+1]-1;
^
gondola.cpp:19:14: error: invalid types 'int[int]' for array subscript
n[i]=n[i+1]-1;
^
gondola.cpp:20:11: error: invalid types 'int[int]' for array subscript
if (n[i]<=0) n[i]+=n;
^
gondola.cpp:20:20: error: invalid types 'int[int]' for array subscript
if (n[i]<=0) n[i]+=n;
^
gondola.cpp:24:41: error: invalid types 'int[int]' for array subscript
if (inputSeq[i]<=n && inputSeq[i]!=n[i]) return 0;
^