Problem | basketball_cpic |
---|---|
User | niicoletong |
Submission Time | 2025-06-20 14:47:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
basketball_cpic.cpp: In function ‘int main()’:
basketball_cpic.cpp:6:10: error: expected ‘;’ before ‘long’
6 | cin >> n
| ^
| ;
7 |
8 | long long int count = 0;
| ~~~~
basketball_cpic.cpp:14:6: error: ‘score’ was not declared in this scope
14 | if (score % 2 == 0) {
| ^~~~~
basketball_cpic.cpp:15:9: error: no post-increment operator for type
15 | count++;
| ^~
basketball_cpic.cpp:18:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
18 | 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