Problem candymountain_ex
User louisleehi
Submission Time 2024-04-10 10:58:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:9:10: error: ‘i’ was not declared in this scope
9 | int arr[i],maximumn=0;
| ^
candymountain_ex.cpp:12:12: error: ‘arr’ was not declared in this scope
12 | cin>>arr[i];
| ^~~
candymountain_ex.cpp:21: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’
21 | if(s.size) == k)
| ^
candymountain_ex.cpp:21:18: error: expected primary-expression before ‘==’ token
21 | if(s.size) == k)
| ^~