atoi();
function need pointer to string. char*
that is the reason warning warning: passing argument 1 of 'atoi' makes pointer from integer without typecase
you declare co like: char co[50];
but calls atoi(co[i]);
this is wrong,
notice it says int not char.
an example like:
atoi("1");
is valid but atoi('1');
not valid.
so even co
is like "12345678"
then atoi(co)
correct but atoi(co[i])
not correct.