Problem catfight
User LowSkillDuck
Submission Time 2025-09-21 20:07:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catfight.cpp: In function ‘int main()’:
catfight.cpp:8:10: error: ‘cin’ is not a member of ‘std’
8 | std::cin >> catsNo;
| ^~~
catfight.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
catfight.cpp:9:10: error: ‘cin’ is not a member of ‘std’
9 | std::cin >> rarCatPower;
| ^~~
catfight.cpp:9:10: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
catfight.cpp:12:14: error: ‘cin’ is not a member of ‘std’
12 | std::cin >> singleCatPower;
| ^~~
catfight.cpp:12:14: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
catfight.cpp:30:10: error: ‘cout’ is not a member of ‘std’
30 | std::cout << highestCatGroupSize;