Submission #562746

#TimeUsernameProblemLanguageResultExecution timeMemory
562746Halym2007Arranging Shoes (IOI19_shoes)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>using namespace std;typedef long long ll;ll count_swaps(vector <int> S) {if (S[0] < 0 and S[1] > 0) {  return 0;  }  else return 1;;}

Compilation message (stderr)

shoes.cpp:2:31: warning: extra tokens at end of #include directive
    2 | #include <bits/stdc++.h>using namespace std;typedef long long ll;ll count_swaps(vector <int> S) {if (S[0] < 0 and S[1] > 0) {  return 0;  }  else return 1;;}
      |                               ^~~~~~~~~
shoes.cpp:2:126: error: extended character   is not valid in an identifier
    2 | #include <bits/stdc++.h>using namespace std;typedef long long ll;ll count_swaps(vector <int> S) {if (S[0] < 0 and S[1] > 0) {  return 0;  }  else return 1;;}
      |                                                                                                                              ^
shoes.cpp:2:138: error: extended character   is not valid in an identifier
    2 | #include <bits/stdc++.h>using namespace std;typedef long long ll;ll count_swaps(vector <int> S) {if (S[0] < 0 and S[1] > 0) {  return 0;  }  else return 1;;}
      |                                                                                                                                         ^
shoes.cpp:2:142: error: extended character   is not valid in an identifier
    2 | #include <bits/stdc++.h>using namespace std;typedef long long ll;ll count_swaps(vector <int> S) {if (S[0] < 0 and S[1] > 0) {  return 0;  }  else return 1;;}
      |                                                                                                                                            ^
shoes.cpp:2:10: fatal error: bits/stdc++.h>usin: No such file or directory
    2 | #include <bits/stdc++.h>using namespace std;typedef long long ll;ll count_swaps(vector <int> S) {if (S[0] < 0 and S[1] > 0) {  return 0;  }  else return 1;;}
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.