QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#766129#9551. The EmperorHuangHanShengCompile Error//C++174.1kb2024-11-20 16:19:262024-11-20 16:19:26

Details

answer.code:105:2: error: stray ‘#’ in program
  105 | }#include<iostream>
      |  ^
answer.code:105:3: error: ‘include’ does not name a type
  105 | }#include<iostream>
      |   ^~~~~~~
answer.code:109:11: error: redefinition of ‘const int P’
  109 | const int P = 998244353;
      |           ^
answer.code:5:11: note: ‘const int P’ previously defined here
    5 | const int P = 998244353;
      |           ^
answer.code:110:8: error: redefinition of ‘struct INSTRUCTION’
  110 | struct INSTRUCTION
      |        ^~~~~~~~~~~
answer.code:6:8: note: previous definition of ‘struct INSTRUCTION’
    6 | struct INSTRUCTION
      |        ^~~~~~~~~~~
answer.code:114:13: error: redefinition of ‘INSTRUCTION stk [4200]’
  114 | INSTRUCTION stk[N<<2];
      |             ^~~
answer.code:10:13: note: ‘INSTRUCTION stk [4200]’ previously declared here
   10 | INSTRUCTION stk[N<<2];
      |             ^~~
answer.code:115:5: error: redefinition of ‘int top’
  115 | int top;
      |     ^~~
answer.code:11:5: note: ‘int top’ previously declared here
   11 | int top;
      |     ^~~
answer.code:117:8: error: redefinition of ‘struct mmi’
  117 | struct mmi
      |        ^~~
answer.code:13:8: note: previous definition of ‘struct mmi’
   13 | struct mmi
      |        ^~~
answer.code:126:5: error: redefinition of ‘mmi f [1050]’
  126 | mmi f[N];
      |     ^
answer.code:22:5: note: ‘mmi f [1050]’ previously declared here
   22 | mmi f[N];
      |     ^
answer.code:127:5: error: redefinition of ‘int vis [1050]’
  127 | int vis[N],vt[N];
      |     ^~~
answer.code:23:5: note: ‘int vis [1050]’ previously declared here
   23 | int vis[N],vt[N];
      |     ^~~
answer.code:127:12: error: redefinition of ‘int vt [1050]’
  127 | int vis[N],vt[N];
      |            ^~
answer.code:23:12: note: ‘int vt [1050]’ previously declared here
   23 | int vis[N],vt[N];
      |            ^~
answer.code:128:5: error: redefinition of ‘int cnt [1050]’
  128 | int cnt[N];
      |     ^~~
answer.code:24:5: note: ‘int cnt [1050]’ previously declared here
   24 | int cnt[N];
      |     ^~~
answer.code:129:6: error: redefinition of ‘char s [10]’
  129 | char s[10];
      |      ^
answer.code:25:6: note: ‘char s [10]’ previously declared here
   25 | char s[10];
      |      ^
answer.code:130:5: error: redefinition of ‘int INS [1050][4]’
  130 | int INS[N][4];
      |     ^~~
answer.code:26:5: note: ‘int INS [1050][4]’ previously declared here
   26 | int INS[N][4];
      |     ^~~
answer.code:131:5: error: redefinition of ‘int ans’
  131 | int ans,n;
      |     ^~~
answer.code:27:5: note: ‘int ans’ previously declared here
   27 | int ans,n;
      |     ^~~
answer.code:131:9: error: redefinition of ‘int n’
  131 | int ans,n;
      |         ^
answer.code:27:9: note: ‘int n’ previously declared here
   27 | int ans,n;
      |         ^
answer.code:132:6: error: redefinition of ‘bool dfs(int, int)’
  132 | bool dfs(int i,int t)
      |      ^~~
answer.code:28:6: note: ‘bool dfs(int, int)’ previously defined here
   28 | bool dfs(int i,int t)
      |      ^~~
answer.code:181:5: error: redefinition of ‘int main()’
  181 | int main()
      |     ^~~~
answer.code:77:5: note: ‘int main()’ previously defined here
   77 | int main()
      |     ^~~~