Well first of while you can compile with C++, you have to export the function via C conventions (to prevent name mangling).
And then (as you probably know) int[]
is nothing else than int*
for C/C++.
So it again is a number:
Module.cwrap('fnc', ['number', 'number'], ['number'])