Borderou de evaluare (job #1835033)
Utilizator | Data | 26 decembrie 2016 04:15:18 | |
---|---|---|---|
Problema | Xnumere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:28: error: expected ‘,’ or ‘...’ before ‘base’
long long lgput (int base base, int exp)
^
user.cpp: In function ‘long long int lgput(int)’:
user.cpp:9:9: error: ‘exp’ was not declared in this scope
if (exp == 1)
^
user.cpp:11:9: error: ‘exp’ was not declared in this scope
if (exp % 2 == 0)
^
user.cpp: In function ‘int main()’:
user.cpp:27:45: error: too many arguments to function ‘long long int lgput(int)’
comb = (1LL *comb * lgput(i, MOD - 2)) % MOD;
^
user.cpp:6:11: note: declared here
long long lgput (int base base, int exp)
^
user.cpp:28:42: error: too many arguments to function ‘long long int lgput(int)’
int p = (1LL * comb * lgput(i, n)) % MOD;
^
user.cpp:6:11: note: declared here
long long lgput (int base base, int exp)
^
user.cpp:39:45: error: too many arguments to function ‘long long int lgput(int)’
sol = (sol * 1LL * lgput (i, MOD - 2)) % MOD;
^
user.cpp:6:11: note: declared here
long long lgput (int base base, int exp)
^
user.cpp: In function ‘long long int lgput(int)’:
user.cpp:14:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !