Borderou de evaluare (job #3183438)
Utilizator | Data | 11 decembrie 2023 20:28:13 | |
---|---|---|---|
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 powlg(long long int, long long int)':
main.cpp:12:20: error: expected primary-expression before ',' token
12 | long long val =, x = a % MOD;
| ^
main.cpp:16:25: error: 'x' was not declared in this scope
16 | val = val * x % MOD;
| ^
main.cpp:17:9: error: 'x' was not declared in this scope
17 | x = x * x % MOD;
| ^
main.cpp:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
20 | }
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !