prog.cpp: In function ‘int lol(int, int*)’:
prog.cpp:13:20: error: invalid operands of types ‘int*’ and ‘int’ to binary ‘operator*’
*p = p * j;
~~^~~
prog.cpp:19:20: error: invalid operands of types ‘int*’ and ‘int’ to binary ‘operator*’
*p = p * j;
~~^~~
prog.cpp: In function ‘int main()’:
prog.cpp:31:15: error: invalid operands of types ‘int’ and ‘int*’ to binary ‘operator*’
if (lol(2 * &n) > 127)
~~^~~~