제출 #562746

#제출 시각아이디문제언어결과실행 시간메모리
562746Halym2007Arranging Shoes (IOI19_shoes)C++17
컴파일 에러
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;;}

컴파일 시 표준 에러 (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.