Borderou de evaluare (job #2828662)
Utilizator | Data | 7 ianuarie 2022 19:23:26 | |
---|---|---|---|
Problema | Xnumere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:69:19: error: conversion from 'long long int' to 'modint' is ambiguous
69 | smen *= (i%MOD);
| ~~^~~~~
main.cpp:11:5: note: candidate: 'modint::modint(int64_t)'
11 | modint(int64_t value_) : value(value_% MOD) {}
| ^~~~~~
main.cpp:10:5: note: candidate: 'modint::modint(int32_t)'
10 | modint(int32_t value_) : value(value_% MOD) {}
| ^~~~~~
main.cpp:17:40: note: initializing argument 1 of 'modint& modint::operator*=(modint)'
17 | inline modint& operator *= (modint other) { this->value = (int64_t)this->value * other.value % MOD; if (this->value < 0) this->value += MOD; return *this; }
| ~~~~~~~^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !