#include <iostream> using namespace std; int main(){ int A,B; cin>>A; cin>>B; if(b%2=00&&b!=4&&b!=6||b%5=00&&b!=4&&b!=6||b%8=0&&b!=4&&b!=6){ cout<<"200"; }else if(if(a%2==1){ cout<<"100"; }else if(a==b) cout<<"50"; }
2 9
prog.cpp: In function ‘int main()’: prog.cpp:7:4: error: ‘b’ was not declared in this scope if(b%2=00&&b!=4&&b!=6||b%5=00&&b!=4&&b!=6||b%8=0&&b!=4&&b!=6){ ^ prog.cpp:9:10: warning: init-statement in selection statements only available with -std=c++17 or -std=gnu++17 }else if(if(a%2==1){ ^~ prog.cpp:9:10: error: expected primary-expression before ‘if’ prog.cpp:11:2: error: expected primary-expression before ‘else’ }else if(a==b) ^~~~ prog.cpp:11:2: error: expected ‘)’ before ‘else’ }else if(a==b) ^~~~ ) prog.cpp:9:9: note: to match this ‘(’ }else if(if(a%2==1){ ^
Standard output is empty