Submission #1039151

#TimeUsernameProblemLanguageResultExecution timeMemory
1039151MeGustaElArroz23popa (BOI18_popa)C++17
0 / 100
1 ms432 KiB
#include <bits/stdc++.h> #include "popa.h" using namespace std; int solve(int N, int* Left, int* Right) { for (int i = 0; i < N; i++) { Left[i] = -1; Right[i] = -1; } bool respuesta = query(0,0,0,0); return 0; } void test(int N) { int* Left = new int[N]; int* Right = new int[N]; int root = solve(N, Left, Right); cout << "Root: " << root << endl; for (int i = 0; i < N; i++) { cout << Left[i] << " " << Right[i] << endl; } }

Compilation message (stderr)

popa.cpp: In function 'int solve(int, int*, int*)':
popa.cpp:13:14: warning: unused variable 'respuesta' [-Wunused-variable]
   13 |         bool respuesta = query(0,0,0,0);
      |              ^~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...