Submission #690916

#TimeUsernameProblemLanguageResultExecution timeMemory
690916penguin133Super Dango Maker (JOI22_dango3)C++17
Compilation error
0 ms0 KiB
} #include <bits/stdc++.h> using namespace std; //#include "dango3.h" int vis[405]; void Solve(int N, int M) { for(int i=1;i<=M;i++){ vector <int> fin; for(int j=1;j<=N*M;j++){ if(vis[j])continue; vector <int> stuf; for(int k=1;k<=N*M;k++){ if(vis[k] || k == j)continue; stuf.push_back(k); } if(Query(stuf) == M - i){ fin.push_back(j); vis[j] = 1; } } Answer(fin); } }

Compilation message (stderr)

dango3.cpp:1:1: error: expected declaration before '}' token
    1 | }
      | ^
dango3.cpp: In function 'void Solve(int, int)':
dango3.cpp:17:7: error: 'Query' was not declared in this scope
   17 |    if(Query(stuf) == M - i){
      |       ^~~~~
dango3.cpp:22:3: error: 'Answer' was not declared in this scope
   22 |   Answer(fin);
      |   ^~~~~~