Submission #569462

#TimeUsernameProblemLanguageResultExecution timeMemory
569462TurkhuuHexagonal Territory (APIO21_hexagon)C++17
Compilation error
0 ms0 KiB
#include "hexagon.h" #include <bits/stdc++.h> const int mod = 1000000007; int draw_territory(int n, int a, int b, std::vector<int> d, std::vector<int> l){ if(n == 3){ long long ans = a * (L + 1) % mod * (L + 2) % mod; return ans; } return 0; }

Compilation message (stderr)

hexagon.cpp: In function 'int draw_territory(int, int, int, std::vector<int>, std::vector<int>)':
hexagon.cpp:6:26: error: 'L' was not declared in this scope
    6 |     long long ans = a * (L + 1) % mod * (L + 2) % mod;
      |                          ^