Online Compiler C

#include <stdio.h> int is_vowel(char c){ return c=='a'||c=='e'||c=="i"||c=='o'||c=='u'||c=='y'; } int main() { char s[201]; scanf("%s", &s); int count=0; for (int i = 0;s[i]!='\0'; i++) { if (is_vowel(s[i])){ count++; } } printf("%d\n", count); return 0; }
The code reads a string and counts how many vowels it contains, but it has a mistake in the vowel check function.

- In `is_vowel`, one of the comparisons uses `c=="i"` instead of `c=='i'`. The double quotes make it a string comparison, which is incorrect for comparing a single character. Check that line and change the double quotes to single quotes.