Problem basketball_cpic
User abhro
Submission Time 2025-06-20 15:40:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

basketball_cpic.cpp: In function ‘int main()’:
basketball_cpic.cpp:13:5: error: ‘numbers’ was not declared in this scope
13 | numbers[S];
| ^~~~~~~
basketball_cpic.cpp:20:8: error: ‘i’ was not declared in this scope
20 | if (S[i] % 2 == 0){count++;} ;
| ^
basketball_cpic.cpp:20:26: error: no post-increment operator for type
20 | if (S[i] % 2 == 0){count++;} ;
| ^~
basketball_cpic.cpp:21:10: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
21 | 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:39,
from /usr/include/x86_64-linux-gn