Borderou de evaluare (job #3153775)
Utilizator | Data | 1 octombrie 2023 11:26:08 | |
---|---|---|---|
Problema | Text | 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:15:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | while (pozitie < str.size()){
| ~~~~~~~~^~~~~~~~~~~~
main.cpp:19:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
19 | while (pozitie < str.size() && !litera(str[pozitie])){
| ~~~~~~~~^~~~~~~~~~~~
main.cpp:22:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
22 | while (pozitie < str.size() && litera(str[pozitie])){
| ~~~~~~~~^~~~~~~~~~~~
main.cpp:30:9: error: 'cout' was not declared in this scope
30 | cout << 0;
| ^~~~
main.cpp:2:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
1 | #include <fstream>
+++ |+#include <iostream>
2 | #include <string>
main.cpp:32:9: error: 'cout' was not declared in this scope
32 | cout << litere / cuvinte;
| ^~~~
main.cpp:32:9: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !