记录详情

Compile Error

/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
             }
             ^

信息

递交者
类型
自测
题目
P1088 4-2 最长递增子序列
语言
C++
递交时间
2021-09-06 01:25:25
评测时间
2021-09-06 01:25:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes