Submission #580101

# Submission time Handle Problem Language Result Execution time Memory
580101 2022-06-20T15:15:00 Z Elias Flight to the Ford (BOI22_communication) C++17
0 / 100
7 ms 200 KB
#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

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 time Memory Grader output
1 Incorrect 2 ms 200 KB Not correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 200 KB Not correct
2 Halted 0 ms 0 KB -