Submission #1179502

#TimeUsernameProblemLanguageResultExecution timeMemory
1179502GoBananas69Arranging Shoes (IOI19_shoes)C++20
Compilation error
0 ms0 KiB
#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
typedef long long ll;

ll count_swaps(vector<int> S){
    if (s[0] > s[1]) return 1;
    return 0;
}

// signed main() {
//     cin.tie(0)->sync_with_stdio(0);

// }

Compilation message (stderr)

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