I have read your this post many times but still I couldn't find out exact problem.What line is that compiler error for. I'm not aware of any compiler that doesn't give SOME indication of WHERE in the program it encountered the error.
Hint: What has to be true regarding the value of the variable 'wait' in order for the function code to reach the return statement?
compiler show following errors
ram.c:4:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
ram.c:10:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
ram.c:13:4: error: expected '{' at end of input
}
after seeing these error, I can't understand where is exact mistake