Submission #844614

#TimeUsernameProblemLanguageResultExecution timeMemory
844614EntityPlanttLost in the cycle (IOI19_cycle)C++17
0 / 100
0 ms344 KiB
#include "cycle.h" #include <cstdio> #include <cstdlib> #include <math.h> void escape(int n) { fprintf(stderr, "OK\n%d\n", log2(n) + 3); exit(0); }

Compilation message (stderr)

cycle.cpp: In function 'void escape(int)':
cycle.cpp:6:25: warning: format '%d' expects argument of type 'int', but argument 3 has type '__gnu_cxx::__enable_if<true, double>::__type' {aka 'double'} [-Wformat=]
    6 |   fprintf(stderr, "OK\n%d\n", log2(n) + 3);
      |                        ~^     ~~~~~~~~~~~
      |                         |             |
      |                         int           __gnu_cxx::__enable_if<true, double>::__type {aka double}
      |                        %f
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...