Submission #784217

#TimeUsernameProblemLanguageResultExecution timeMemory
784217HD1Arranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
//we are all lost trying to be someone.
#include "shoes.h"
#include <bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(0); cin.tie(0);
#define sz(x) ll(x.size())
#define reve(x) reverse(x.begin(),x.end())
#define ff first
#define ss second
#define pb push_back
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll,ll> ii;
typedef pair<ll, ii >tri;
const ll MAX=1e7+100;
const ll mod=1e9+7;
const ll inf=1e9;
long long count_swaps(vector<int> s){
    if(S[0]<S[1]) return ll(0);
    else return 1;
}

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:19:8: error: 'S' was not declared in this scope
   19 |     if(S[0]<S[1]) return ll(0);
      |        ^
shoes.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
   21 | }
      | ^