제출 #886672

#제출 시각아이디문제언어결과실행 시간메모리
886672vjudge1Arranging Shoes (IOI19_shoes)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define ff first #define ss second ll count_swaps(vector<int> S) { if (a[0] > 0) return 1LL; return 0LL; }

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

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:11:9: error: 'a' was not declared in this scope
   11 |     if (a[0] > 0)
      |         ^