求大佬改错,谢谢!

P1089 [NOIP2004 提高组] 津津的储蓄计划

```cpp #include<iostream> #include<cstdio> #include<cmath> using namespace std; int main(){ int c=0,a[13],i,j,b=300,d=0; for(i=1;i<=12;i++) cin>>a[i]; for(j=1;j<=12;j++) { b=300; b=300-a[j]; if(c+b>=0) { c=c+b; if(c/100>0) d=d+c/100; c=c-c/100*100; } else { printf("-%d",j); j=14; } } if(j==13)cout<<c+d*120; return 0; } ``` 大佬。。。
by JosephDai @ 2017-07-10 13:43:42


人家是C语言,你用C++。
by 老俊 @ 2017-07-10 21:48:44


@[陈俊安cja](/space/show?uid=42424) 提交语言就是c++
by Accepted_233 @ 2017-07-11 20:47:35


..........
by 老俊 @ 2017-07-11 20:54:48


。。。
by 风待葬丶 @ 2017-07-24 11:15:12


|