Submission #567811

#TimeUsernameProblemLanguageResultExecution timeMemory
567811Halym2007Arranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll count_swaps(vector <int> S) { long long int n = S.size(); if (n == 1) { if (S[0] < 0 and S[1] > 0) { return 0; } else return 1; } else { long long int ans = (n / 2) * (n / 2 - 1) / 2; return ans;  }  }

Compilation message (stderr)

shoes.cpp:15:2: error: extended character   is not valid in an identifier
   15 |   }
      |  ^
shoes.cpp:16:2: error: extended character   is not valid in an identifier
   16 |   }
      |  ^
shoes.cpp: In function 'll count_swaps(std::vector<int>)':
shoes.cpp:15:2: error: '\U000000a0' was not declared in this scope
   15 |   }
      |  ^
shoes.cpp:16:2: error: '\U000000a0' was not declared in this scope
   16 |   }
      |  ^