Submission #722201

# Submission time Handle Problem Language Result Execution time Memory
722201 2023-04-11T14:59:49 Z bin9638 Digital Circuit (IOI22_circuit) C++17
Compilation error
0 ms 0 KB
#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

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);
      |     ^~~~~~~~~~