| Problem | whiteboardgame |
|---|---|
| User | asruby |
| Submission Time | 2024-12-02 22:58:16 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
whiteboardgame.cpp: In function ‘int32_t main()’:
whiteboardgame.cpp:37:31: error: expected ‘)’ before ‘arr’
37 | s.insert(make_pair(y,x-1)
| ~ ^
| )
38 | arr[x-1] = y;
| ~~~
whiteboardgame.cpp:39:12: error: cannot convert ‘const std::pair<long long int, long long int>’ to ‘long long int’ in assignment
39 | arrmin = *s.begin();
| ^~~~~~~~~~
| |
| const std::pair<long long int, long long int>
In file included from /usr/include/c++/9/set:61,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:87,
from whiteboardgame.cpp:1:
/usr/include/c++/9/bits/stl_set.h: In instantiation of ‘void std::set<_Key, _Compare, _Alloc>::insert(_InputIterator, _InputIterator) [with _InputIterator = long long int; _Key = std::pair<lo