Submission #722201

#TimeUsernameProblemLanguageResultExecution timeMemory
722201bin9638Digital Circuit (IOI22_circuit)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #ifndef SKY #include "circuit.h" #endif // SKY using namespace std; #define N 100010 #define ll long long #define fs first #define sc second #define ii pair<int,ll> #define pb push_back int n; const ll mod=1000002022; void init(int NNN, int MMM, vector<int> P, vector<int> A) { n=NNN+MMM; } ll count_ways(int L, int R) { return 0; } #ifdef SKY int main() { freopen("A.inp","r",stdin); freopen("A.out","w",stdout); ios::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); return 0; } #endif

Compilation message (stderr)

circuit.cpp:25:4: error: ambiguating new declaration of 'long long int count_ways(int, int)'
   25 | ll count_ways(int L, int R)
      |    ^~~~~~~~~~
In file included from circuit.cpp:4:
circuit.h:4:5: note: old declaration 'int count_ways(int, int)'
    4 | int count_ways(int L, int R);
      |     ^~~~~~~~~~