fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int d= 3;
  6. int e= 5;
  7. int f= 6;
  8. int multiplicacion=(d*e*f);
  9. }
  10. if ((d*e*f=1000)){
  11. printf ("resultado es", multiplicacion);
  12.  
  13. }
  14. else;{
  15. printf ("resultado erroneo")
  16. return 0;
  17. }
  18.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:10:2: error: expected unqualified-id before ‘if’
  if ((d*e*f=1000)){
  ^~
prog.cpp:14:2: error: expected unqualified-id before ‘else’
  else;{
  ^~~~
prog.cpp:14:7: error: expected unqualified-id before ‘{’ token
  else;{
       ^
stdout
Standard output is empty