fork download
  1. void iDontUseMyArguments(int a, int b) {
  2. (void) a;
  3. (void) b;
  4. }
  5.  
  6. void iDontEither(int a, int b) {
  7. (void) a, b;
  8. }
  9.  
  10. void norDoI(int a, int b) {
  11. void(a, b);
  12. }
  13.  
  14. void meNeither(int a, int b) {
  15. (void)(a, b);
  16. }
  17.  
  18. void jumpOnBandwagon(int a, int b) {
  19. void((a, b));
  20. }
  21.  
  22. int main() {
  23. return 0;
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'void norDoI(int, int)':
prog.cpp:11:11: error: expression list treated as compound expression in functional cast [-fpermissive]
  void(a, b);
           ^
stdout
Standard output is empty