QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#312080#4550. 魔法小程序ahihi1234Compile Error//C++145.2kb2024-01-23 12:42:542024-01-23 12:42:55

详细

answer.code:120:11: error: redefinition of ‘const long long int N’
  120 | const int N=1e6+10;
      |           ^
answer.code:11:11: note: ‘const long long int N’ previously defined here
   11 | const int N=1e6+10;
      |           ^
answer.code:121:5: error: redefinition of ‘long long int a [102]’
  121 | int a[102], c[N], b[N];
      |     ^
answer.code:12:5: note: ‘long long int a [102]’ previously declared here
   12 | int a[102], c[N], b[N];
      |     ^
answer.code:121:13: error: redefinition of ‘long long int c [1000010]’
  121 | int a[102], c[N], b[N];
      |             ^
answer.code:12:13: note: ‘long long int c [1000010]’ previously declared here
   12 | int a[102], c[N], b[N];
      |             ^
answer.code:121:19: error: redefinition of ‘long long int b [1000010]’
  121 | int a[102], c[N], b[N];
      |                   ^
answer.code:12:19: note: ‘long long int b [1000010]’ previously declared here
   12 | int a[102], c[N], b[N];
      |                   ^
answer.code:122:5: error: redefinition of ‘long long int n’
  122 | int n, m;
      |     ^
answer.code:13:5: note: ‘long long int n’ previously declared here
   13 | int n, m;
      |     ^
answer.code:122:8: error: redefinition of ‘long long int m’
  122 | int n, m;
      |        ^
answer.code:13:8: note: ‘long long int m’ previously declared here
   13 | int n, m;
      |        ^
answer.code:160:6: error: redefinition of ‘bool magic(long long int, long long int, long long int)’
  160 | bool magic(int x, int y, int z){
      |      ^~~~~
answer.code:15:6: note: ‘bool magic(long long int, long long int, long long int)’ previously defined here
   15 | bool magic(int x, int y, int z){
      |      ^~~~~
answer.code:168:6: error: redefinition of ‘bool magic(long long int, long long int, long long int, std::vector<long long int>&)’
  168 | bool magic(int x, int y, int z, vector<int> &base){
      |      ^~~~~
answer.code:23:6: note: ‘bool magic(long long int, long long int, long long int, std::vector<long long int>&)’ previously defined here
   23 | bool magic(int x, int y, int z, vector<int> &base){
      |      ^~~~~
answer.code:176:6: error: redefinition of ‘void solve()’
  176 | void solve(){
      |      ^~~~~
answer.code:31:6: note: ‘void solve()’ previously defined here
   31 | void solve(){
      |      ^~~~~
answer.code:225:9: error: redefinition of ‘int32_t main()’
  225 | int32_t main(){
      |         ^~~~
answer.code:79:9: note: ‘int32_t main()’ previously defined here
   79 | int32_t main(){
      |         ^~~~