Problem stickytape
User ChickenCoder
Submission Time 2023-07-05 16:36:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

stickytape.cpp:43: error: unterminated argument list invoking macro "assert"
stickytape.cpp: In function ‘int main()’:
stickytape.cpp:25:4: error: ‘assert’ was not declared in this scope
25 | assert(s.find(make_pair(arr[l[a.second]] + arr[a.second], l[a.second]) != s.end());
| ^~~~~~
stickytape.cpp:4:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
3 | #include <cassert>
+++ |+#include <cassert>
4 | using namespace std;
stickytape.cpp:25:4: error: expected ‘}’ at end of input
25 | assert(s.find(make_pair(arr[l[a.second]] + arr[a.second], l[a.second]) != s.end());
| ^~~~~~
stickytape.cpp:24:25: note: to match this ‘{’
24 | if (l[a.second] != -1){
| ^
stickytape.cpp:25:4: error: expected ‘}’ at end of input
25 | assert(s.find(make_pair(arr[l[a.second]] + arr[a.second], l[a.second]) != s.end());<