Problem | elephants |
---|---|
User | siewjh |
Submission Time | 2023-07-03 16:23:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
elephants.cpp:3:1: error: ‘define’ does not name a type
3 | define int long long
| ^~~~~~
elephants.cpp:10:1: error: ‘vector’ does not name a type
10 | vector<int> grps[MAXB], minamt[MAXB], reach[MAXB];
| ^~~~~~
elephants.cpp:11:1: error: ‘set’ does not name a type; did you mean ‘setns’?
11 | set<pair<int, int>> eord;
| ^~~
| setns
elephants.cpp: In function ‘void recalc(int)’:
elephants.cpp:15:12: error: ‘grps’ was not declared in this scope
15 | int gsz = grps[gind].size();
| ^~~~
elephants.cpp:16:2: error: ‘minamt’ was not declared in this scope
16 | minamt[gind] = vector<int>(gsz);
| ^~~~~~
elephants.cpp:16:17: error: ‘vector’ was not declared in this scope
16 | minamt[gind] = vector<int>(gsz);
| ^~~~~~
elephants.cpp:16:17: note: suggested alternatives:
In file included from /usr/include/c++/9/vector