Submission #1322895

#TimeUsernameProblemLanguageResultExecution timeMemory
1322895phungmanager0Souvenirs (IOI25_souvenirs)C++20
Compilation error
0 ms0 KiB
#include "souvenirs.h"
#include <bits/stdc++.h>
#define FOR(i, a, b) for (int i = (a), _b = (b); i <= _b; i++)
#define FORD(i, b, a) for (int i = (b), _a = (a); i >= _a; i--)
#define REP(i, n) for (int i = 0, _n = (n); i < _n; i++)
#define FORE(i, v) for (__typeof((v).begin()) i = (v).begin(); i != (v).end(); i++)
#define ALL(v) (v).begin(), (v).end()
#define int long long
#define MASK(i) (1LL << (i))
#define BIT(x, i) (((x) >> (i)) & 1)
using namespace std;

void buy_souvenirs(int N, int P0) {
    if(n == 2) {
        transaction(P0 - 1);
    }
}

Compilation message (stderr)

souvenirs.cpp: In function 'void buy_souvenirs(long long int, long long int)':
souvenirs.cpp:14:8: error: 'n' was not declared in this scope
   14 |     if(n == 2) {
      |        ^