Submission #487189

#TimeUsernameProblemLanguageResultExecution timeMemory
487189AnasBenMoussaSecret (JOI14_secret)C++14
Compilation error
0 ms0 KiB
#include "secret.h" long long a[10000]; void Init(int N, int A[]){ for(long long i=0;i<N;i++){ a[i]=A[i]; } } long long Query(int L , int R){ long long r; r=Secret(a[L+1],a[L]); for(long long i=L+2;i<=R;i++){ r=Secret(r,a[i]); } return r; }

Compilation message (stderr)

secret.cpp:9:12: error: ambiguating new declaration of 'long long int Query(int, int)'
    9 | long long  Query(int L , int R){
      |            ^~~~~
In file included from secret.cpp:1:
secret.h:5:5: note: old declaration 'int Query(int, int)'
    5 | int Query(int L, int R);
      |     ^~~~~