Borderou de evaluare (job #3187149)

Utilizator xiaolaobanCorman Denis xiaolaoban Data 27 decembrie 2023 19:42:40
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 'void boris()': main.cpp:10:18: error: expected ';' before 'while' 10 | fin>>n>>p | ^ | ; 11 | while(p){ // 4 | ~~~~~ main.cpp:19:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse] 19 | int main(){ | ^~ main.cpp:19:9: note: remove parentheses to default-initialize a variable 19 | int main(){ | ^~ | -- main.cpp:19:9: note: or replace parentheses with braces to value-initialize a variable main.cpp:19:11: error: a function-definition is not allowed here before '{' token 19 | int main(){ | ^ main.cpp:21:2: error: expected '}' at end of input 21 | } | ^ main.cpp:5:13: note: to match this '{' 5 | void boris(){ | ^ main.cpp:6:13: warning: unused variable 'mod' [-Wunused-variable] 6 | int mod = 1999999973; | ^~~ main.cpp:7:19: warning: unused variable 'j' [-Wunused-variable] 7 | int n, p, j = 1; // 2 4 | ^ Non zero exit status: 1

Ceva nu functioneaza?