Problem | pairsums |
---|---|
User | NoynYT |
Submission Time | 2025-02-20 22:47:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pairsums.cpp: In function ‘int main()’:
pairsums.cpp:5:172: error: lvalue required as left operand of assignment
5 | using namespace std;int main(){long long P,Q,R,S,T,U,V,W,X1,Y1,Z1;cin>>P;T=P+1;S=-1;R=0;U=0;V=0;while(T--){cin>>W;Z1=W&1;X1=Z1^1;Y1=Z1?V:U;W=(S-W^1)+1;if(Z1)R+=1;if(X1)Y+=1;}cout<<R*Y;return 0;}
| ^