Изменить так,чтобы не было ошибки вот комментарий: 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'
using namespace std;
int sum( int x, int y)
{
return x+y;
}
int main()
{
int x,y,z;
scanf("%d%d",&x,&y);
z=sum(x,y);
printf("%d",z);
}
Пример:
100 5
105