Problem | candymountain_ex |
---|---|
User | louisleehi |
Submission Time | 2024-04-10 10:58:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:8:10: error: ‘i’ was not declared in this scope
8 | int arr[i],maximumn=0;
| ^
candymountain_ex.cpp:11:12: error: ‘arr’ was not declared in this scope
11 | cin>>arr[i];
| ^~~
candymountain_ex.cpp:20:16: error: cannot convert ‘std::multiset<int>::size’ from type ‘std::multiset<int>::size_type (std::multiset<int>::)() const noexcept’ {aka ‘long unsigned int (std::multiset<int>::)() const noexcept’} to type ‘bool’
20 | if(s.size) == k)
| ^
candymountain_ex.cpp:20:18: error: expected primary-expression before ‘==’ token
20 | if(s.size) == k)
| ^~