compilation error

prog.cpp: In function ‘int main()’:
prog.cpp:9:6: error: statement cannot resolve address of overloaded function
endl;
^
how can i remove this error?

my code for the problem “THE LEAD GAME”:
#include
#include
using namespace std;
int main()
{ int N,i,S,T,L=0,W,K=0;
std::cin>>N;
for(i=1;i<=N;i++)
{std::cin>>S>>T;
endl;
K=S-T;
if(L<abs(K))
L=K;
if(L>=0)
W=1;
else
W=2;

}
std::cout<<W;
std::cout<<abs(L);

return 0;
}

use std::cout<<endl;