prog.c: In function ‘main’:
prog.c:9:1: error: expected ‘;’ before ‘function’
function MAIOR( X , Y : real ) : real;
^~~~~~~~
prog.c:10:5: warning: ‘main’ is normally a non-static function [-Wmain]
int main ()
^~~~
prog.c: In function ‘main’:
prog.c:11:1: error: expected declaration specifiers before ‘if’
if ( X > Y) then
^~
prog.c:15:1: error: expected declaration specifiers before ‘return’
return;
^~~~~~
prog.c:16:1: error: expected declaration specifiers before ‘}’ token
}
^
prog.c:18:6: warning: ‘main’ is normally a non-static function [-Wmain]
int main()
^~~~
prog.c: In function ‘main’:
prog.c:19:1: error: expected declaration specifiers before ‘printf’
printf("Entre com um valor: ");
^~~~~~
prog.c:20:1: error: expected declaration specifiers before ‘scanf’
scanf(A);
^~~~~
prog.c:21:1: error: expected declaration specifiers before ‘write’
write("Entre com um valor: ");
^~~~~
prog.c:22:1: error: expected declaration specifiers before ‘scanf’
scanf(B);
^~~~~
prog.c:23:1: error: expected declaration specifiers before ‘VAL’
VAL := MAIOR(A,B);
^~~
prog.c:24:1: error: expected declaration specifiers before ‘printf’
printf("Maior: ', VAL ");
^~~~~~
prog.c:25:1: error: expected declaration specifiers before ‘return’
return;
^~~~~~
prog.c:26:1: error: expected declaration specifiers before ‘}’ token
}
^
prog.c:27:1: error: unknown type name ‘function’
function L6P14;
^~~~~~~~
prog.c:28:1: error: expected declaration specifiers before ‘A’
A = input("Entre com um valor: ");
^
prog.c:29:1: error: expected declaration specifiers before ‘B’
B = input("Entre com um valor: ");
^
prog.c:30:1: error: expected declaration specifiers before ‘printf’
printf(1,"Maior: %f\n', MAIOR(A,B) ");
^~~~~~
prog.c:31:1: error: unknown type name ‘function’
function RET = MAIOR( X , Y );
^~~~~~~~
prog.c:31:1: error: parameter ‘RET’ is initialized
prog.c:31:16: warning: implicit declaration of function ‘MAIOR’ [-Wimplicit-function-declaration]
function RET = MAIOR( X , Y );
^~~~~
prog.c:31:23: error: ‘X’ undeclared (first use in this function)
function RET = MAIOR( X , Y );
^
prog.c:31:23: note: each undeclared identifier is reported only once for each function it appears in
prog.c:31:27: error: ‘Y’ undeclared (first use in this function)
function RET = MAIOR( X , Y );
^
prog.c:32:1: error: expected declaration specifiers before ‘if’
if ( X > Y )
^~
prog.c:34:1: error: expected declaration specifiers before ‘else’
else
^~~~
prog.c:38:1: error: expected declaration specifiers before ‘return’
return 0;
^~~~~~
prog.c:39:1: error: expected declaration specifiers before ‘}’ token
}
^
prog.c:31:10: error: declaration for parameter ‘RET’ but no such parameter
function RET = MAIOR( X , Y );
^~~
prog.c:27:10: error: declaration for parameter ‘L6P14’ but no such parameter
function L6P14;
^~~~~
prog.c:39:1: error: expected ‘{’ at end of input
}
^
prog.c: In function ‘main’:
prog.c:39:1: error: expected declaration or statement at end of input
prog.c: In function ‘main’:
prog.c:39:1: error: expected declaration or statement at end of input
prog.c:39:1: error: expected declaration or statement at end of input
At top level:
prog.c:10:5: warning: ‘main’ defined but not used [-Wunused-function]
int main ()
^~~~
prog.c:18:6: warning: ‘main’ defined but not used [-Wunused-function]
int main()
^~~~