QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#99598#6347. XOR DeterminantcrescentCompile Error//C++141.0kb2023-04-23 08:05:252023-04-23 08:05:26

詳細信息

answer.code: In function ‘int main()’:
answer.code:24:84: error: ‘p’ was not declared in this scope
   24 |                 for (int k = i; k <= n; k++) A[i][k] = (A[i][k] - tmp * A[j][k]) % p;
      |                                                                                    ^
answer.code:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |     scanf("%d", &n);
      |     ~~~~~^~~~~~~~~~
answer.code:14:39: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   14 |     for (int i = 1; i <= n; i++) scanf("%lld", b + i);
      |                                  ~~~~~^~~~~~~~~~~~~~~
answer.code:15:39: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   15 |     for (int i = 1; i <= n; i++) scanf("%lld", c + i);
      |                                  ~~~~~^~~~~~~~~~~~~~~