| 1 | #include <iostream> |
| 2 | |
| 3 | int main() |
| 4 | { |
| 5 | //Creation of vars |
| 6 | int n, a, b, c, count = 0; |
| 7 | //Take in input for n lines |
| 8 | std::cin >> n; |
| 9 | //Loop for n |
| 10 | for (int i = 0; i < n; i++) |
| 11 | { |
| 12 | //Take in user input |
| 13 | std::cin >> a; |
| 14 | std::cin >> b; |
| 15 | std::cin >> c; |
| 16 | //If more than 2 are sure then they will do the problem |
| 17 | if (a + b + c >= 2) |
| 18 | //Increase problem count |
| 19 | count++; |
| 20 | } |
| 21 | //Return problem count |
| 22 | std::cout << count; |
| 23 | return 0; |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected