QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#61805#2541. Coins and BoxesMaMengQiCompile Error//C++14995b2022-11-14 21:48:382022-11-14 21:48:39

詳細信息

answer.code:13:7: error: ‘N’ was not declared in this scope
   13 | int a[N], b[N];
      |       ^
answer.code:13:13: error: ‘N’ was not declared in this scope
   13 | int a[N], b[N];
      |             ^
answer.code: In function ‘int main()’:
answer.code:21:45: error: ‘a’ was not declared in this scope
   21 |         for (int i = 1; i <= n; ++i) cin >> a[i];
      |                                             ^
answer.code:22:45: error: ‘b’ was not declared in this scope
   22 |         for (int i = 1; i <= n; ++i) cin >> b[i];
      |                                             ^
answer.code:24:28: error: ‘b’ was not declared in this scope
   24 |         const int mx = max(b[n], a[n]);
      |                            ^
answer.code:24:34: error: ‘a’ was not declared in this scope
   24 |         const int mx = max(b[n], a[n]);
      |                                  ^