제출 #569462

#제출 시각아이디문제언어결과실행 시간메모리
569462Turkhuu육각형 영역 (APIO21_hexagon)C++17
컴파일 에러
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;
}

컴파일 시 표준 에러 (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;
      |                          ^