Borderou de evaluare (job #3235053)
Utilizator | Data | 13 iunie 2024 18:39:28 | |
---|---|---|---|
Problema | Perle | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool Calc(std::string)':
main.cpp:10:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
10 | for(int i = 0; i < c.size(); i++) {
| ~~^~~~~~~~~~
main.cpp:26:21: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
26 | if(c.size() > n) return false;
| ~~~~~~~~~^~~
main.cpp:28:22: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
28 | return (c.size() == n);
| ~~~~~~~~~^~~~
main.cpp: In function 'int main()':
main.cpp:35:39: error: 'v' was not declared in this scope
35 | for(i = 0; i < n; i++) fin >> v[i];
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !