/in/foo.cc: In function 'int main()':
/in/foo.cc:18:29: error: expected ')' before '(' token
N = (int )malloc(sizeof(int)(n1+n2));
^
/in/foo.cc:18:36: error: cast from 'void*' to 'int' loses precision [-fpermissive]
N = (int )malloc(sizeof(int)(n1+n2));
^
/in/foo.cc:18:5: error: invalid conversion from 'int' to 'int*' [-fpermissive]
N = (int )malloc(sizeof(int)(n1+n2));
^~~~~~~~~~~~~~~~~~~~~~~~~
/in/foo.cc:38:11: error: lvalue required as left operand of assignment
(N + i) = temp;
^~~~
/in/foo.cc:47:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if ((N + j) == temp)
^~~~