Problem eight
User brat
Submission Time 2025-11-03 19:48:15
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;}
| ~~~^~