Borderou de evaluare (job #3327767)
| Utilizator | Data | 5 decembrie 2025 10:04:42 | |
|---|---|---|---|
| Problema | Permutari 3 | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void adunare(nr&, nr)':
main.cpp:13:19: warning: comparison of integer expressions of different signedness: 'int' and 'const long unsigned int' [-Wsign-compare]
13 | for(int i=0; i<max(a.v.size(), b.v.size()); i++)
| ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:15:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | if(i>=a.v.size())
| ~^~~~~~~~~~~~
main.cpp:21:13: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | if(i<b.v.size())
| ~^~~~~~~~~~~
main.cpp: In function 'void imp(nr&, int)':
main.cpp:45:22: error: 'n' was not declared in this scope
45 | carry=a.v[i]%n;
| ^
main.cpp:41:18: warning: unused variable 'rest' [-Wunused-variable]
41 | int carry=0, rest;
| ^~~~
main.cpp: In function 'void mult(nr&, int)':
main.cpp:57:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
57 | for(int i=0; i<a.v.size(); i++)
| ~^~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:102:9: error: 'c' was not declared in this scope
102 | c=fact;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
