Submission #1241322

#TimeUsernameProblemLanguageResultExecution timeMemory
1241322lunarechoSeptember (APIO24_september)C++20
Compilation error
0 ms0 KiB
#include "september.h" #include <bits/stdc++.h> using namespace std; int solve(int N, int M, std::vector<int> F, std::vector<std::vector<int>> S) { int ans = 0; int c = N - 1; for(int i=0;i<N - 1;++i) { if(S[0][i] == v) ++ans,--c; } return ans; }

Compilation message (stderr)

september.cpp: In function 'int solve(int, int, std::vector<int>, std::vector<std::vector<int> >)':
september.cpp:10:31: error: 'v' was not declared in this scope
   10 |                 if(S[0][i] == v)
      |                               ^