/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1543 极值问题
语言
C++
递交时间
2021-11-19 11:20:45
评测时间
2021-11-19 11:20:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes