jelly.cpp: In function 'int find_maximum_unique(int, int, std::vector<int>, std::vector<int>)':
jelly.cpp:17:19: error: 'n' was not declared in this scope
17 | for(int i=0;i<n;i++){
| ^
jelly.cpp:9:12: error: 'struct std::pair<int, int>' has no member named 'push_back'
9 | #define pb push_back
| ^~~~~~~~~
jelly.cpp:18:19: note: in expansion of macro 'pb'
18 | sortowane.pb({a[i],b[i]});
| ^~
jelly.cpp:20:20: error: 'struct std::pair<int, int>' has no member named 'begin'
20 | sort(sortowane.begin(),sortowane.end());
| ^~~~~
jelly.cpp:20:38: error: 'struct std::pair<int, int>' has no member named 'end'
20 | sort(sortowane.begin(),sortowane.end());
| ^~~
jelly.cpp:25:20: error: 'n' was not declared in this scope
25 | for(int i=1;i<=n;i++){
| ^
jelly.cpp:29:30: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
29 | if(j >= sortowane[i-1].st)
| ^
jelly.cpp:30:60: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
30 | dp[i][j] = max(dp[i][j],dp[i-1][j-sortowane[i-1].st]);
| ^
jelly.cpp:31:39: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
31 | if(dp[i-1][j] >= sortowane[i-1].nd)
| ^
jelly.cpp:32:63: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
32 | dp[i][j] = max(dp[i][j],dp[i-1][j] - sortowane[i-1].nd);
| ^
jelly.cpp:38:32: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
38 | reszta.pb(sortowane[i-1].nd);
| ^