I've look everywhere online, I'm completely lost and starting to really get pissed off. Nothing I see anywhere has anything to do with the error I'm seeing, it's as if the whole world has this problem, but a completely different solution. It's frustrating to hell and back because none of the fixes I've seen anywhere seem to even be related to my problem. Here is my code, I pray someone may help me...
#include<stdio.h>
#include<stdlib.h>
int count = 0;
int state = 1;
int copy = getchar();
int main() {
     if (state != 0){
    
        while (copy != EOF)
           count++;
    
        state = 0;
    } else(){
         printf("The function has finished, your name has %d characters", count);
         count = 0;
         state = 1;
     }
 }
Ignore the placement of brackets in terms of depth, I must be a damn fool because no matter what I did (```, or ''', or ctrl k, etc) I couldn't get the freaking code to indent more than one line, so I literally went through and added 5 spaces to each. I hope I did it decently, I hope someone can explain to me what it is I'm not seeing...
 
    