fork download
  1. #include <iostream>
  2.  
  3. void f(int **a) ;
  4. void f(int *a[2]) ;
  5.  
  6. int main()
  7. {
  8. int* array[32] ;
  9. int* b[2] ;
  10. f(array) ;
  11. f(b);
  12. }
  13.  
  14. void f(int**)
  15. {
  16. std::cout << "f(int**)\n" ;
  17. }
  18.  
  19. void f(int*[2])
  20. {
  21. std::cout << "f(int*[2])\n" ;
  22. }
  23.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘void f(int**)’:
prog.cpp:19:6: error: redefinition of ‘void f(int**)’
 void f(int*[2])
      ^
prog.cpp:14:6: error: ‘void f(int**)’ previously defined here
 void f(int**)
      ^
stdout
Standard output is empty