제출 #1251983

#제출 시각아이디문제언어결과실행 시간메모리
1251983islam_2010선물 (IOI25_souvenirs)C++20
컴파일 에러
0 ms0 KiB
#include "souvenirs.h" #include <bits/stdc++.h> using namespace std; void buy_souvenirs(int n, long long p0){ if(n==2){ transaction(p0-1); }else { for(int i = n-1; i >=0; i--){ int m = po-i; for(int j = 0; j < n-i; j++){ transaction(m); } } } }

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

souvenirs.cpp: In function 'void buy_souvenirs(int, long long int)':
souvenirs.cpp:11:21: error: 'po' was not declared in this scope; did you mean 'p0'?
   11 |             int m = po-i;
      |                     ^~
      |                     p0