fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. int A,B;
  5. cin>>A;
  6. cin>>B;
  7. if(b%2=00&&b!=4&&b!=6||b%5=00&&b!=4&&b!=6||b%8=0&&b!=4&&b!=6){
  8. cout<<"200";
  9. }else if(if(a%2==1){
  10. cout<<"100";
  11. }else if(a==b)
  12. cout<<"50";
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2 9
compilation info
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){
         ^
stdout
Standard output is empty