foo.cc: In function 'int main()':
foo.cc:10:35: error: lvalue required as left operand of assignment
if((i*i-i*j-j*j)*(i*i-i*j-j*j)=1)
^
foo.cc:17:6: warning: init-statement in selection statements only available with -std=c++1z or -std=gnu++1z
if(max<(a[i]*a[i]+b[i]*b[i])
^~~
foo.cc:18:6: error: expected ';' before 'max'
max=a[i]*a[i]+b[i]*b[i];
^~~
foo.cc:17:9: warning: statement has no effect [-Wunused-value]
if(max<(a[i]*a[i]+b[i]*b[i])
~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:19:21: error: expected ')' before ';' token
cout<<max<<endl;
^
foo.cc:5:9: warning: unused variable 'm' [-Wunused-variable]
int m,n,k,i,j,p=0,max;
^
foo.cc:5:11: warning: unused variable 'n' [-Wunused-variable]
int m,n,k,i,j,p=0,max;
^
[Hydro](https://hydro.ac)提供评测服务