Submission #500655

#TimeUsernameProblemLanguageResultExecution timeMemory
500655HelloWorldArranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include "shoes.h" using namespace std; long long count_swaps ( vector <int> s) { ll x; if (v[0] < 0) { x = 0; return x; } x = 1; return 1; }

Compilation message (stderr)

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:4:2: error: 'll' was not declared in this scope
    4 |  ll x;
      |  ^~
shoes.cpp:5:6: error: 'v' was not declared in this scope
    5 |  if (v[0] < 0) {
      |      ^
shoes.cpp:6:3: error: 'x' was not declared in this scope
    6 |   x = 0;
      |   ^
shoes.cpp:9:2: error: 'x' was not declared in this scope
    9 |  x = 1;
      |  ^