#include <iostream> using namespace std; int main() { int m=4,n=2,k=5; float x=4.6,y=14.9; cin>> m>>n>>k>>x>>y; m=y=m+n*(m=(m+n==++x)*10+(y*2)/(float)*(n+3); cout<<m<<n<<k<<x<<y; return 0; }
4 2 5 4.6 14.9
prog.cpp: In function ‘int main()’: prog.cpp:8:44: error: invalid type argument of unary ‘*’ (have ‘int’) m=y=m+n*(m=(m+n==++x)*10+(y*2)/(float)*(n+3); ^ prog.cpp:8:45: error: expected ‘)’ before ‘;’ token m=y=m+n*(m=(m+n==++x)*10+(y*2)/(float)*(n+3); ^
Standard output is empty