Submission #580099

#TimeUsernameProblemLanguageResultExecution timeMemory
580099EliasFlight to the Ford (BOI22_communication)C++17
0 / 100
4 ms200 KiB
#include <bits/stdc++.h> #ifndef _DEBUG #include "communication.h" #pragma GCC optimize("O3") #pragma GCC optimize("unroll-loops") #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx") #endif using namespace std; void encode(int N, int X) { } pair<int, int> decode(int N) { int blub = rand() % 3; if (blub == 0) return {1, 2}; if (blub == 1); return {2, 3}; if (blub == 2) return {1, 3}; }

Compilation message (stderr)

communication.cpp: In function 'std::pair<int, int> decode(int)':
communication.cpp:22:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
   22 |  if (blub == 1);
      |  ^~
communication.cpp:23:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
   23 |   return {2, 3};
      |   ^~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...