Borderou de evaluare (job #2952388)
Utilizator | Data | 9 decembrie 2022 08:39:23 | |
---|---|---|---|
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 'int main()':
main.cpp:25:5: error: 'k' was not declared in this scope
25 | k = 1999999973;
| ^
main.cpp: In function 'int p1(long long int, long long int, long long int, long long int)':
main.cpp:12:7: warning: control reaches end of non-void function [-Wreturn-type]
12 | p1(x * x_cpy, x_cpy, n, i + 1);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int p2(long long int, long long int, long long int, long long int)':
main.cpp:20:7: warning: control reaches end of non-void function [-Wreturn-type]
20 | p2(x * x_cpy, x_cpy, n, i + 1);
| ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !