Borderou de evaluare (job #3128838)
Utilizator | Data | 11 mai 2023 08:38:24 | |
---|---|---|---|
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:8:11: warning: built-in function 'pow' declared as non-function [-Wbuiltin-declaration-mismatch]
8 | long long pow(lon long a, long long p)
| ^~~
main.cpp:8:15: error: 'lon' was not declared in this scope; did you mean 'long'?
8 | long long pow(lon long a, long long p)
| ^~~
| long
main.cpp:8:27: error: expected primary-expression before 'long'
8 | long long pow(lon long a, long long p)
| ^~~~
main.cpp:8:38: error: expression list treated as compound expression in initializer [-fpermissive]
8 | long long pow(lon long a, long long p)
| ^
main.cpp: In function 'int main()':
main.cpp:25:15: error: 'pow' cannot be used as a function
25 | out << pow(a, b);
| ~~~^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !