Simple input problem

https://online.codingblocks.com/app/player/43431/content/19258/4693

@ashutoshu hey ashutosh this link is not accessible to me
so please share your code through ide.codingblocks.com

@ashutoshu hey ashutosh you have send me blank code link please check it once again

I am copying the link but that code is not posted

this is my code
#include
using namespace std;
int main() {
int n,sum=0,t;
cout<<“enter the value of n\n”;
cin>>n;
while(n–)
{
cin>>t;
sum+=t;
if(sum<0)
break;
cout<<t<<endl;
}

return 0;

}