Problem | 4sum |
---|---|
User | dacashew |
Submission Time | 2023-01-06 19:55:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
4sum.cpp: In function ‘int main()’:
4sum.cpp:6:16: error: expected primary-expression before ‘<’ token
6 | #define hashmap<int,int> unordered map<int,int>
| ^
4sum.cpp:24:2: note: in expansion of macro ‘hashmap’
24 | hashmap<int,pair<int,int>> m;
| ^~~~~~~
4sum.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
4sum.cpp:6:17: note: in expansion of macro ‘int’
6 | #define hashmap<int,int> unordered map<int,int>
| ^~~
4sum.cpp:24:2: note: in expansion of macro ‘hashmap’
24 | hashmap<int,pair<int,int>> m;
| ^~~~~~~
4sum.cpp:28:4: error: ‘m’ was not declared in this scope
28 | m[sum]={v1[i],v2[j]};
| ^
4sum.cpp:43:7: error: ‘m’ was not declared in this scope
43 | if(m.count(0-v1[i]-v2[j])==1){
| ^