Problem | minimum |
---|---|
User | 6root2i |
Submission Time | 2023-07-16 16:39:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
minimum.cpp: In function ‘int findMin(int, int*)’:
minimum.cpp:7:11: error: request for member ‘empty’ in ‘s’, which is of non-class type ‘std::stack<int>()’
7 | if (s.empty() || A[i] < s.top()){
| ^~~~~
minimum.cpp:7:31: error: request for member ‘top’ in ‘s’, which is of non-class type ‘std::stack<int>()’
7 | if (s.empty() || A[i] < s.top()){
| ^~~
minimum.cpp:8:9: error: request for member ‘push’ in ‘s’, which is of non-class type ‘std::stack<int>()’
8 | s.push(A[i]);
| ^~~~
minimum.cpp:11:12: error: request for member ‘top’ in ‘s’, which is of non-class type ‘std::stack<int>()’
11 | return s.top();
| ^~~