aplusb.cpp:2: warning: ignoring '#pragma GCC opitmize' [-Wunknown-pragmas]
2 | #pragma GCC opitmize ("O4")
|
aplusb.cpp: In function 'std::vector<long long int> smallest_sums(long long int, std::vector<long long int>, std::vector<long long int>)':
aplusb.cpp:16:30: error: expected ';' before 'set'
16 | sort (b.begin(), b.end())
| ^
| ;
17 | set <pair<int, pair<int, int>>> s;
| ~~~
aplusb.cpp:19:25: error: 'n' was not declared in this scope
19 | for (int i = 0; i < n; ++ i){
| ^
aplusb.cpp:20:9: error: 's' was not declared in this scope
20 | s.insert ({a[i] + b[i], {i, 0}});
| ^
aplusb.cpp:22:25: error: 'n' was not declared in this scope
22 | for (int i = 0; i < n; ++ i){
| ^
aplusb.cpp:23:21: error: 's' was not declared in this scope
23 | auto val = *s.begin();
| ^