제출 #1179502

#제출 시각아이디문제언어결과실행 시간메모리
1179502GoBananas69Arranging Shoes (IOI19_shoes)C++20
컴파일 에러
0 ms0 KiB
#include <algorithm> #include <iostream> #include <vector> using namespace std; typedef long long ll; ll count_swaps(vector<int> S){ if (s[0] > s[1]) return 1; return 0; } // signed main() { // cin.tie(0)->sync_with_stdio(0); // }

컴파일 시 표준 에러 (stderr) 메시지

shoes.cpp: In function 'll count_swaps(std::vector<int>)':
shoes.cpp:8:9: error: 's' was not declared in this scope
    8 |     if (s[0] > s[1]) return 1;
      |         ^