QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#170345#5748. Determinant, or...?ucup-team983#Compile Error//C++171.3kb2023-09-09 15:03:462023-09-09 15:03:46

Details

answer.code:9:1: error: expected unqualified-id before ‘/’ token
    9 | / dx[4] = {1,-1,0,0},dy[4] = {0,0,1,-1};
      | ^
answer.code:9:21: error: expected unqualified-id before ‘,’ token
    9 | / dx[4] = {1,-1,0,0},dy[4] = {0,0,1,-1};
      |                     ^
answer.code:9:28: error: expected constructor, destructor, or type conversion before ‘=’ token
    9 | / dx[4] = {1,-1,0,0},dy[4] = {0,0,1,-1};
      |                            ^
answer.code:13:1: error: expected unqualified-id before ‘/’ token
   13 | / qmi(int a, int b, int p){ll res = 1 % p;while (b){if (b & 1) res = res * a % p;a = a * (ll)a % p;b >>= 1;}return res;}
      | ^