제출 #1203410

#제출 시각아이디문제언어결과실행 시간메모리
1203410Muaath_5Hexagonal Territory (APIO21_hexagon)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; const int MOD = 1000000007; int draw_territory(int N, int A, int B, vector<int> D, vector<int> L) { const ll cnt = (1LL*L[0]*(L[0]-1)/2); return (1LL*A*cnt)%MOD; }

컴파일 시 표준 에러 (stderr) 메시지

hexagon.cpp: In function 'int draw_territory(int, int, int, std::vector<int>, std::vector<int>)':
hexagon.cpp:5:9: error: 'll' does not name a type
    5 |   const ll cnt = (1LL*L[0]*(L[0]-1)/2);
      |         ^~
hexagon.cpp:6:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
    6 |   return (1LL*A*cnt)%MOD;
      |                 ^~~
      |                 int