Submission #569462

# Submission time Handle Problem Language Result Execution time Memory
569462 2022-05-27T12:08:12 Z Turkhuu Hexagonal Territory (APIO21_hexagon) C++17
Compilation error
0 ms 0 KB
#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

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;
      |                          ^