Submission #509867

#TimeUsernameProblemLanguageResultExecution timeMemory
509867vectorChameleon's Love (JOI20_chameleon)C++17
Compilation error
0 ms0 KiB
#include "chameleon.h" #include<bits/stdc++.h> using namespace std; int Query(const std::vector<int> &p); void Answer(int a, int b); void Solve(int N) { for(int i=1;i<=2*N;i++)for(int j=i+1;j<=2*N;j++)if(i!=j){ vector<int>p; p.push_back(i); p.push_back(j); if(Query(p)==1)answer(i,j); } }

Compilation message (stderr)

chameleon.cpp: In function 'void Solve(int)':
chameleon.cpp:12:24: error: 'answer' was not declared in this scope; did you mean 'Answer'?
   12 |         if(Query(p)==1)answer(i,j);
      |                        ^~~~~~
      |                        Answer