You've used the variable $T$ in both expressions without telling us what it represents. If we interpret $T$ as the period in the Fourier expansion, and compute
$$
\sum_{n=-\infty}^\infty c_ne^{2\pi int/T}
$$
with $c_n$ defined as in your question, we get the periodic function which agrees with your function on the interval $[-T/2,T/2]$ and is periodic with period $2$. So the sum would look like some sort of square wave (unless $T<1/2$ in which case it would be the constant function $1$).
In principle, there is nothing that says you can't define the Fourier coefficients for arbitrary (not necessarily periodic) functions, but the Fourier coefficients are only meaningful if you specify the period you want to sum over.
In this case, you've only integrated from $-T/2$ to $T/2$, so the only information you've used about the function $\Pi$ is the values it takes on the interval $[-T/2,T/2]$. So the Fourier coefficients you get do not give you the function $\Pi$ when you sum over them, but give you the unique function that:
- agrees with $\Pi$ on the interval $[-T/2,T/2]$
- is periodic with period $T$ (I'm assuming that's what $T$ is).
You could change the behaviour of $\Pi$ outside $[-T/2,T/2]$ without changing either of the integrals in your question, so, as far as the Fourier series is concerned, you might as well have been integrating over the periodic function rather than the non-periodic $\Pi$.
Incidentally, your second integral in the question is wrong. It should read:
$$
c_n=\int_{-1/2}^{1/2}e^{-2\pi int}\Pi(Tt)dt
$$
I'd edit, but it's more useful for you to see where the error is in your question. I'm also not convinced this integral is actually easier to solve, either.