제출 #1241838

#제출 시각아이디문제언어결과실행 시간메모리
1241838lunarechoArranging Shoes (IOI19_shoes)C++20
컴파일 에러
0 ms0 KiB
#include "shoes.h" #include <bits/stdc++.h> using namespace std; #define ll long long; long long count_swaps(vector<int> s) { return n - 1; }

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

shoes.cpp: In function 'long long int count_swaps(std::vector<int>)':
shoes.cpp:7:16: error: 'n' was not declared in this scope
    7 |         return n - 1;
      |                ^