Borderou de evaluare (job #789563)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Album (clasa a 6-a) | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 12 oct. 2024 16:06:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int count(std::string, std::string)':
main.cpp:5:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'unsigned int'} [-Wsign-compare]
5 | for (int i = 0; i < str.length(); i++) {
| ~~^~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:20:1: error: expected declaration before '}' token
20 | }
| ^
main.cpp: In function 'int main()':
main.cpp:48:27: error: 'stickers' was not declared in this scope
48 | int current = stickers[i];
| ^~~~~~~~