Borderou de evaluare (job #2959089)

Utilizator Luka77Anastase Luca George Luka77 Data 29 decembrie 2022 19:54:02
Problema Rick Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:24: error: expected ',' or ';' before 'MOD' 8 | const int NMAX = 5e5+5 MOD = 1e9 + 7; | ^~~ main.cpp: In function 'll _gcd(ll, ll)': main.cpp:20:16: error: 'MOD' was not declared in this scope 20 | return a % MOD; | ^~~ main.cpp: In function 'void solve()': main.cpp:38:25: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 38 | for(ll l = 1; l < v.size(); ++l) | ~~^~~~~~~~~~ main.cpp:39:41: error: 'MOD' was not declared in this scope 39 | gcd = _gcd(gcd, v[l]), gcd%=MOD; | ^~~ main.cpp:40:18: error: 'MOD' was not declared in this scope 40 | ans+=gcd%MOD; | ^~~ main.cpp:43:23: error: 'MOD' was not declared in this scope 43 | fout << (ans + 1)%MOD; | ^~~ main.cpp:25:8: warning: unused variable 'k' [-Wunused-variable] 25 | ll k = 1, ans = 0; | ^ Non zero exit status: 1

Ceva nu functioneaza?