Problem | lis |
---|---|
User | Hengweezy |
Submission Time | 2024-02-07 13:38:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis.cpp: In function ‘int main()’:
lis.cpp:18:21: error: request for member ‘first’ in ‘dp.std::map<int, int>::operator[](j)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’}
18 | if(value > dp[j].first){
| ^~~~~
lis.cpp:19:21: error: request for member ‘second’ in ‘dp.std::map<int, int>::operator[](j)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’}
19 | if(max == dp[j].second){
| ^~~~~~
lis.cpp:24:20: error: request for member ‘second’ in ‘dp.std::map<int, int>::operator[](j)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘int’}
24 | }else if(dp[j].second > currmax){
| ^~~~~~
lis.cpp:25:22: error: request for member ‘second’ in ‘dp.std::map<int, int>::operator[](j)’, which is of non-class type ‘std::map<int, int>::mapped_type’ {aka ‘in