'"Expected expression"error in my code I don't know what do do from here [closed]

Here is a screenshot of my code with the error on line 14

c


Solution 1:[1]

you are declaring a function inside another function. C doesnt allow that

you have

 int main(){  

     int func(....){
        ....
      }
  }

etc

You have to do

    int func(....){
        ....
    }
    int main(){  
          ....
    }

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1