Submission #1251983

#TimeUsernameProblemLanguageResultExecution timeMemory
1251983islam_2010Souvenirs (IOI25_souvenirs)C++20
Compilation error
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);
            }
        }
    }
}

Compilation message (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