Borderou de evaluare (job #3133219)

Utilizator AlexandruBenescuAlexandru Benescu AlexandruBenescu Data 25 mai 2023 13:09:33
Problema Rubarba Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool next_is_better_up1(int, double)': main.cpp:129:10: warning: unused variable 'y1' [-Wunused-variable] 129 | double y1 = pr_1.second; | ^~ main.cpp:132:10: warning: unused variable 'y2' [-Wunused-variable] 132 | double y2 = pr_2.second; | ^~ main.cpp: In function 'bool next_is_better_ri1(int, double)': main.cpp:144:10: warning: unused variable 'x1' [-Wunused-variable] 144 | double x1 = pr_1.first; | ^~ main.cpp:147:10: warning: unused variable 'x2' [-Wunused-variable] 147 | double x2 = pr_2.first; | ^~ main.cpp: In function 'bool next_is_better_dn1(int, double)': main.cpp:161:10: warning: unused variable 'y1' [-Wunused-variable] 161 | double y1 = pr_1.second; | ^~ main.cpp:164:10: warning: unused variable 'y2' [-Wunused-variable] 164 | double y2 = pr_2.second; | ^~ main.cpp: In function 'bool next_is_better_le1(int, double)': main.cpp:176:10: warning: unused variable 'x1' [-Wunused-variable] 176 | double x1 = pr_1.first; | ^~ main.cpp:179:10: warning: unused variable 'x2' [-Wunused-variable] 179 | double x2 = pr_2.first; | ^~ main.cpp: In function 'int main()': main.cpp:208:46: error: expected ';' before '{' token 208 | if (n < LIMIT && (n % 7 != 4 || n % 3 == 1){ | ^ | ; main.cpp:208:17: warning: statement has no effect [-Wunused-value] 208 | if (n < LIMIT && (n % 7 != 4 || n % 3 == 1){ | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:303:3: error: expected primary-expression before 'else' 303 | else{ | ^~~~ main.cpp:302:4: error: expected ')' before 'else' 302 | } | ^ | ) 303 | else{ | ~~~~ main.cpp:208:6: note: to match this '(' 208 | if (n < LIMIT && (n % 7 != 4 || n % 3 == 1){ | ^ Non zero exit status: 1

Ceva nu functioneaza?