QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#559061#8221. 多方计算xiaruizeCompile Error//C++147.8kb2024-09-11 19:57:562024-09-11 19:57:57

Details

answer.code:198: warning: "debug" redefined
  198 | #define debug(...)
      | 
answer.code:7: note: this is the location of the previous definition
    7 | #define debug(x)
      | 
answer.code:231:5: error: conflicting declaration ‘long long int N’
  231 | int N, M;
      |     ^
answer.code:229:11: note: previous declaration as ‘const long long int N’
  229 | const int N = 2e5 + 10;
      |           ^
answer.code: In function ‘long long int precalc(long long int, long long int)’:
answer.code:234:7: error: assignment of read-only variable ‘N’
  234 |     N = n, M = m;
      |     ~~^~~