제출 #981400

#제출 시각아이디문제언어결과실행 시간메모리
981400Faisal_SaqibHexagonal Territory (APIO21_hexagon)C++17
컴파일 에러
0 ms0 KiB
#include "hexagon.h" #include <vector> const ll mod=1e9+7; int draw_territory(int N, int A, int B,std::vector<int> D, std::vector<int> L) { long long total_cell=L[0],two=2; total_cell=(total_cell*(total_cell+1))/two; total_cell%=mod; return (total_cell*A)%mod; }

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

hexagon.cpp:4:7: error: 'll' does not name a type
    4 | const ll mod=1e9+7;
      |       ^~
hexagon.cpp: In function 'int draw_territory(int, int, int, std::vector<int>, std::vector<int>)':
hexagon.cpp:8:15: error: 'mod' was not declared in this scope
    8 |   total_cell%=mod;
      |               ^~~