Submission #431418

#TimeUsernameProblemLanguageResultExecution timeMemory
431418LouayFarahArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#define "bits/stdc++.h" #define "shoes.h" using namespace std; #define ll long long ll count_swaps(vector<int> s) { int n = (int)s.size()/2; if(s[0]<s[1]) return 0; return 1; }

Compilation message (stderr)

shoes.cpp:1:9: error: macro names must be identifiers
    1 | #define "bits/stdc++.h"
      |         ^~~~~~~~~~~~~~~
shoes.cpp:2:9: error: macro names must be identifiers
    2 | #define "shoes.h"
      |         ^~~~~~~~~
shoes.cpp:7:16: error: 'vector' was not declared in this scope
    7 | ll count_swaps(vector<int> s)
      |                ^~~~~~
shoes.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | #define "bits/stdc++.h"
shoes.cpp:7:23: error: expected primary-expression before 'int'
    7 | ll count_swaps(vector<int> s)
      |                       ^~~