Borderou de evaluare (job #3210422)
Utilizator | Data | 6 martie 2024 11:27:23 | |
---|---|---|---|
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 'int main()':
main.cpp:16:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
16 | for(int i=0;i<s.size();i++)
| ~^~~~~~~~~
main.cpp:26:29: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const int' to binary 'operator%'
26 | x=pow(i*x,(m-2))%m;
| ~~~~~~~~~~~~~~^~
| | |
| | const int
| __gnu_cxx::__promote<double>::__type {aka double}
main.cpp:27:46: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const int' to binary 'operator%'
27 | y=pow((s.size()-nrv+i-1)*y,(m-2))%m;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
| | |
| | const int
| __gnu_cxx::__promote<double>::__type {aka double}
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !