Problem eight
User brat
Submission Time 2025-11-03 19:48:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eight.cpp: In function ‘int main()’:
eight.cpp:8:34: error: third operand to the conditional operator is of type ‘void’, but the second operand is neither a throw-expression nor of type ‘void’
8 | while(n--){cin>>a; (a==8)?ans++:(void)0;
| ~~~^~
eight.cpp:10:1: error: expected ‘}’ at end of input
10 | }
| ^
eight.cpp:5:14: note: to match this ‘{’
5 | signed main(){
| ^