fork download
  1. class ALMotionProxy
  2. {
  3. void setAngles(const AL::ALValue& names, const AL::ALValue& angles, const float& fractionMaxSpeed);
  4. };
  5.  
  6. int main( int argc, char *argv[] )
  7. {
  8.  
  9.  
  10. int P=2;
  11.  
  12. do
  13. {
  14. walk();
  15.  
  16. }while(P==2);
  17.  
  18. }
  19.  
  20. void walk(void)
  21. {
  22.  
  23. double fractionMaxSpeed=0.2;
  24.  
  25. AL::ALValue names = AL::ALValue::array("LHipPitch");
  26.  
  27. AL::ALValue angles = AL::ALValue::array(-0.4);
  28.  
  29. motion.setAngles(names, angles, fractionMaxSpeed);
  30.  
  31. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:3:26: error: ‘AL’ does not name a type
prog.cpp:3:37: error: expected unqualified-id before ‘&’ token
prog.cpp:3:37: error: expected ‘)’ before ‘&’ token
prog.cpp:3:30: error: expected ‘;’ at end of member declaration
prog.cpp:3:39: error: ISO C++ forbids declaration of ‘names’ with no type [-fpermissive]
prog.cpp:3:46: error: expected unqualified-id before ‘const’
prog.cpp:3:39: warning: non-static reference ‘int& ALMotionProxy::names’ in class without a constructor [-Wuninitialized]
prog.cpp: In function ‘int main(int, char**)’:
prog.cpp:14:18: error: ‘walk’ was not declared in this scope
prog.cpp: In function ‘void walk()’:
prog.cpp:25:9: error: ‘AL’ has not been declared
prog.cpp:25:21: error: expected ‘;’ before ‘names’
prog.cpp:27:9: error: ‘AL’ has not been declared
prog.cpp:27:21: error: expected ‘;’ before ‘angles’
prog.cpp:29:9: error: ‘motion’ was not declared in this scope
prog.cpp:29:26: error: ‘names’ was not declared in this scope
prog.cpp:29:33: error: ‘angles’ was not declared in this scope
stdout
Standard output is empty