Borderou de evaluare (job #3003940)

Utilizator IoanHerbilHerbil Ioan IoanHerbil Data 16 martie 2023 00:39:29
Problema Coarde în cerc Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:1: error: expected ',' or ';' before 'int' 8 | int MOD=9999991; | ^~~ main.cpp: In function 'int pow_mod(int, int)': main.cpp:13:35: error: 'MOD' was not declared in this scope 13 | res = 1LL * res * a % MOD; | ^~~ main.cpp:15:27: error: 'MOD' was not declared in this scope 15 | a = 1LL * a * a % MOD; | ^~~ main.cpp: In function 'int inv_mod(int)': main.cpp:22:23: error: 'MOD' was not declared in this scope 22 | return pow_mod(x, MOD - 2); | ^~~ main.cpp: In function 'int comb(int)': main.cpp:29:43: error: 'MOD' was not declared in this scope 29 | numerator = 1LL * numerator * i % MOD; | ^~~ main.cpp:32:47: error: 'MOD' was not declared in this scope 32 | denominator = 1LL * denominator * i % MOD; | ^~~ main.cpp:34:54: error: 'MOD' was not declared in this scope 34 | int c = 1LL * numerator * inv_mod(denominator) % MOD; | ^~~ Non zero exit status: 1

Ceva nu functioneaza?