/in/foo.cc: In function 'int main()':
/in/foo.cc:11:16: error: reference to 'array' is ambiguous
cin >> array[i];
^~~~~
/in/foo.cc:5:5: note: candidates are: int array [200005]
int array[200005]={0},dp[20005]={1};
^~~~~
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /in/foo.cc:2:
/usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array
struct array
^~~~~
/in/foo.cc:18:17: error: reference to 'array' is ambiguous
if (array[i]>array[j])
^~~~~
/in/foo.cc:5:5: note: candidates are: int array [200005]
int array[200005]={0},dp[20005]={1};
^~~~~
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /in/foo.cc:2:
/usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array
struct array
^~~~~
/in/foo.cc:18:26: error: reference to 'array' is ambiguous
if (array[i]>array[j])
^~~~~
/in/foo.cc:5:5: note: candidates are: int array [200005]
int array[200005]={0},dp[20005]={1};
^~~~~
In file included from /usr/include/c++/6/tuple:39:0,
from /usr/include/c++/6/functional:55,
from /in/foo.cc:2:
/usr/include/c++/6/array:90:12: note: template<class _Tp, long unsigned int _Nm> struct std::array
struct array
^~~~~
/in/foo.cc:21:13: error: expected ';' before '}' token
}
^