Помогите изменить так,чтобы не было ошибки.Прошу:
#include
int sum( int x, int y);
{
int s;
s=x+y;
return s;
}
int main()
{
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
z=sum(100,5);
printf("%d",z);
}
.............................
Вот комментарий:
cpp:3: error: syntax error before `{' token
cpp:5: error: ISO C++ forbids declaration of `s' with no type
cpp:5: error: `x' was not declared in this scope
cpp:5: error: `y' was not declared in this scope
cpp:6: error: syntax error before `return'