Borderou de evaluare (job #789564)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Album (clasa a 6-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 12 oct. 2024 16:11:59 | 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: In function 'int main()':
main.cpp:46:38: error: 'stickers' was not declared in this scope
46 | int currentSticker = stickers[index];
| ^~~~~~~~
main.cpp:49:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
49 | auto [firstMax, secondMax] = getLargestTwoDigits(currentSticker);
| ^
main.cpp:61:38: error: 'stickers' was not declared in this scope
61 | int currentSticker = stickers[index];
| ^~~~~~~~
main.cpp:64:22: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions]
64 | auto [firstMax, secondMax] = getLargestTwoDigits(currentSticker);
| ^