I get the error : [Error] expected primary-expression before 'int' for line 17

#include <iostream>
using namespace std;
int subtract(int a, int b){
return a-b;
}
int main(){
int x,y = 0;
int & z = x;
int & v = y;

cout<< "Enter two numbers: ";
cin>> x >> y;
cout<<"Now change your numbers if you wish: ";

cin >> z >> v;

cout << "The difference is: "<< subtrack(z,v);




}
subtract

subtrack

Spot the difference.
hahaha my bad!
Topic archived. No new replies allowed.