QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#97515#5823. 海星alch07Compile Error//C++144.2kb2023-04-17 02:53:102023-04-17 02:53:12

Details

answer.code:7:16: error: stray ‘#’ in program
    7 | int val [maxN];#include <iostream>
      |                ^
answer.code:7:17: error: ‘include’ does not name a type
    7 | int val [maxN];#include <iostream>
      |                 ^~~~~~~
answer.code:13:5: error: redefinition of ‘int val [100100]’
   13 | int val [maxN];
      |     ^~~
answer.code:7:5: note: ‘int val [100100]’ previously declared here
    7 | int val [maxN];#include <iostream>
      |     ^~~
answer.code:86:4: error: redefinition of ‘long long int dp [100100][9]’
   86 | ll dp [maxN][9];
      |    ^~
answer.code:14:4: note: ‘long long int dp [100100][9]’ previously declared here
   14 | ll dp [maxN][9];
      |    ^~
answer.code:87:14: error: redefinition of ‘std::vector<int> v [100100]’
   87 | vector <int> v [maxN];
      |              ^
answer.code:15:14: note: ‘std::vector<int> v [100100]’ previously declared here
   15 | vector <int> v [maxN];
      |              ^
answer.code:95:6: error: redefinition of ‘void f(int, int)’
   95 | void f(int x, int p){
      |      ^
answer.code:23:6: note: ‘void f(int, int)’ previously defined here
   23 | void f(int x, int p){
      |      ^
answer.code:136:5: error: redefinition of ‘int main()’
  136 | int main() {
      |     ^~~~
answer.code:63:5: note: ‘int main()’ previously defined here
   63 | int main() {
      |     ^~~~