Problem basketball_cpic
User hitarthdangra
Submission Time 2025-06-20 13:02:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

basketball_cpic.cpp: In function ‘int main()’:
basketball_cpic.cpp:10:13: error: invalid types ‘int[int]’ for array subscript
10 | cin >> S[i];
| ^
basketball_cpic.cpp:14:10: error: invalid types ‘int[int]’ for array subscript
14 | if (S[i] % 2 == 0){
| ^
basketball_cpic.cpp:15:18: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator+’
15 | count = count + 1;
| ~~~~~~^~~
basketball_cpic.cpp:17:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
17 | cout << count;
| ~~~~~^~~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex