hexagon.cpp:7:7: error: 'll' does not name a type
7 | const ll mod = 1e9+7;
| ^~
hexagon.cpp:7:7: note: the macro 'll' had not yet been defined
hexagon.cpp:8: note: it was later defined here
8 | #define ll long long
|
hexagon.cpp: In function 'long long int mul(long long int, long long int)':
hexagon.cpp:13:28: error: 'mod' was not declared in this scope; did you mean 'modf'?
13 | if (n%2==0) return (t*t)%mod;
| ^~~
| modf
hexagon.cpp:14:22: error: 'mod' was not declared in this scope; did you mean 'modf'?
14 | else return ((t*t)%mod*a)%mod;
| ^~~
| modf
hexagon.cpp: In function 'int draw_territory(int, int, int, std::vector<int>, std::vector<int>)':
hexagon.cpp:21:36: error: 'mod' was not declared in this scope; did you mean 'modf'?
21 | a = ((length * (length+1))%mod*mul(2, mod - 2)) %mod;
| ^~~
| modf
hexagon.cpp:24:13: warning: unused variable 'totalsq' [-Wunused-variable]
24 | int totalsq = 4000*4000;
| ^~~~~~~
hexagon.cpp:25:13: warning: unused variable 'dx' [-Wunused-variable]
25 | int dx[6] = {0, 1, 1, 0, -1, -1};
| ^~
hexagon.cpp:26:13: warning: unused variable 'dy' [-Wunused-variable]
26 | int dy[6] = {2, 1 ,-1, -2, -1, 1};
| ^~
hexagon.cpp:28:17: error: 'mod' was not declared in this scope; did you mean 'modf'?
28 | int ans = a%mod;
| ^~~
| modf