Problem minimum
User Xiaoyang
Submission Time 2023-04-15 12:35:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:2:4: error: ‘unordered_multiset’ was not declared in this scope
2 | unordered_multiset<int>ms;
| ^~~~~~~~~~~~~~~~~~
minimum.cpp:2:23: error: expected primary-expression before ‘int’
2 | unordered_multiset<int>ms;
| ^~~
minimum.cpp:3:13: error: ‘begin’ was not declared in this scope
3 | for(auto x:A)ms.insert(x);
| ^
minimum.cpp:3:13: error: ‘end’ was not declared in this scope
minimum.cpp:3:15: error: ‘ms’ was not declared in this scope
3 | for(auto x:A)ms.insert(x);
| ^~
minimum.cpp:5:13: error: ‘ms’ was not declared in this scope
5 | for(auto x:ms)if(x<mini)mini=x;
| ^~
minimum.cpp:6:13: error: expected ‘;’ before ‘}’ token
6 | return mini
| ^
| ;
7 | }
| ~