Borderou de evaluare (job #2323611)
Utilizator | Data | 19 ianuarie 2019 13:54:02 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int Ridicare(long long int, long long int)':
main.cpp:3:23: error: expected ')' before ';' token
#define MOD 1999999973;
^
main.cpp:16:43: note: in expansion of macro 'MOD'
return a * ((Ridicare(a, b / 2) % MOD) * (Ridicare(a, b / 2) % 1999999973)) % MOD;
^~~
main.cpp:3:23: error: expected ')' before ';' token
#define MOD 1999999973;
^
main.cpp:16:43: note: in expansion of macro 'MOD'
return a * ((Ridicare(a, b / 2) % MOD) * (Ridicare(a, b / 2) % 1999999973)) % MOD;
^~~
main.cpp:15:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if (b % 2 == 1)
^~
main.cpp:16:46: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
return a * ((Ridicare(a, b / 2) % MOD) * (Ridicare(a, b / 2) % 1999999973)) % MOD;
^
main.cpp:16:46: error: expected primary-expression before ')' token
main.cpp:17:5: error: 'else' without a previous 'if'
else
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !