QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#202530#5311. Master of BothHuangHanShengCompile Error//C++201.8kb2023-10-06 11:04:382023-10-06 11:04:38

Details

answer.code:62:2: error: stray ‘#’ in program
   62 | }#include <iostream>
      |  ^
answer.code:62:3: error: ‘include’ does not name a type
   62 | }#include <iostream>
      |   ^~~~~~~
answer.code:68:5: error: redefinition of ‘long long int cnt [1000010]’
   68 | int cnt[maxn],ch[maxn][26],indx;
      |     ^~~
answer.code:7:5: note: ‘long long int cnt [1000010]’ previously declared here
    7 | int cnt[maxn],ch[maxn][26],indx;
      |     ^~~
answer.code:68:15: error: redefinition of ‘long long int ch [1000010][26]’
   68 | int cnt[maxn],ch[maxn][26],indx;
      |               ^~
answer.code:7:15: note: ‘long long int ch [1000010][26]’ previously declared here
    7 | int cnt[maxn],ch[maxn][26],indx;
      |               ^~
answer.code:68:28: error: redefinition of ‘long long int indx’
   68 | int cnt[maxn],ch[maxn][26],indx;
      |                            ^~~~
answer.code:7:28: note: ‘long long int indx’ previously declared here
    7 | int cnt[maxn],ch[maxn][26],indx;
      |                            ^~~~
answer.code:69:5: error: redefinition of ‘long long int pa [26][26]’
   69 | int pa[26][26],ans1;
      |     ^~
answer.code:8:5: note: ‘long long int pa [26][26]’ previously declared here
    8 | int pa[26][26],ans1;
      |     ^~
answer.code:69:16: error: redefinition of ‘long long int ans1’
   69 | int pa[26][26],ans1;
      |                ^~~~
answer.code:8:16: note: ‘long long int ans1’ previously declared here
    8 | int pa[26][26],ans1;
      |                ^~~~
answer.code:70:6: error: redefinition of ‘void insert(std::string)’
   70 | void insert(string s)
      |      ^~~~~~
answer.code:9:6: note: ‘void insert(std::string)’ previously defined here
    9 | void insert(string s)
      |      ^~~~~~
answer.code:93:6: error: redefinition of ‘void solve()’
   93 | void solve()
      |      ^~~~~
answer.code:32:6: note: ‘void solve()’ previously defined here
   32 | void solve()
      |      ^~~~~
answer.code:108:8: error: redefinition of ‘int main()’
  108 | signed main()
      |        ^~~~
answer.code:47:8: note: ‘int main()’ previously defined here
   47 | signed main()
      |        ^~~~