Submission #1102208

#TimeUsernameProblemLanguageResultExecution timeMemory
1102208akzytrArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;

// Negative: Left shoe
// Positive: Right shoe
ll count_swaps(vector<int> S) {

	return s[0] > 0;
}

Compilation message (stderr)

shoes.cpp: In function 'll count_swaps(std::vector<int>)':
shoes.cpp:9:9: error: 's' was not declared in this scope
    9 |  return s[0] > 0;
      |         ^