fork download
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. double x, y;
  10. cin >> x >> y;
  11. a = log(y^sqrt(-fabs(x))(sin(x)+ 2.7183^(x+y)));
  12. cout << "a = " << a << endl;
  13. system("PAUSE");
  14. return EXIT_SUCCESS;
  15.  
  16. }
  17.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:11:5: error: ‘a’ was not declared in this scope
     a = log(y^sqrt(-fabs(x))(sin(x)+ 2.7183^(x+y)));
     ^
prog.cpp:11:44: error: invalid operands of types ‘double’ and ‘double’ to binary ‘operator^’
     a = log(y^sqrt(-fabs(x))(sin(x)+ 2.7183^(x+y)));
                              ~~~~~~~~~~~~~~^~~~~~
prog.cpp:11:50: error: expression cannot be used as a function
     a = log(y^sqrt(-fabs(x))(sin(x)+ 2.7183^(x+y)));
                                                  ^
stdout
Standard output is empty