Problem upsanddownsofinvesting
User popperoni
Submission Time 2026-02-25 09:08:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

upsanddownsofinvesting.cpp:130: error: unterminated argument list invoking macro "assert"
130 | }
|
upsanddownsofinvesting.cpp: In function ‘int main()’:
upsanddownsofinvesting.cpp:107:5: error: ‘assert’ was not declared in this scope
107 | assert(s<=1000 and s>=3 and n<= 100 and m<=100;
| ^~~~~~
upsanddownsofinvesting.cpp:19:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
18 | #include <ext/pb_ds/assoc_container.hpp>
+++ |+#include <cassert>
19 | #include <ext/pb_ds/tree_policy.hpp>
upsanddownsofinvesting.cpp:107:5: error: expected ‘}’ at end of input
107 | assert(s<=1000 and s>=3 and n<= 100 and m<=100;
| ^~~~~~
upsanddownsofinvesting.cpp:102:11: note: to match this ‘{’
102 | int main(){
| ^