Submission #503939

#TimeUsernameProblemLanguageResultExecution timeMemory
503939Abrar_Al_SamitXylophone (JOI18_xylophone)C++17
Compilation error
0 ms0 KiB
#include "bits\stdc++.h"
#include "xylophone.h"
#include "grader.cpp"
using namespace std;




void solve(int N) {
  int p = 2;
  while(query(p, N)==N-1) {
    ++p;
  }
  --p;
  int ans[N+1];
  for(int i=1; i<=N; ++i) {
    if(i==p) {
      ans[i] = 1;
    } else {
      ans[i] = 1+query(1, p);
    }
  }
  for(int i=1; i<=N; ++i) {
    answer(i, ans[i]);
  }
}

Compilation message (stderr)

xylophone.cpp:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include "bits\stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.