fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. int testy, wynik, j;
  5. int main()
  6. {
  7. testy = 100;
  8.  
  9. for (int i = 0; i < testy; i++)
  10. {
  11.  
  12. cin >> j;
  13.  
  14. wynik += j;
  15.  
  16. cout << wynik << endl;
  17. }
  18. }
Success #stdin #stdout 0s 5604KB
stdin
6
8
-3
5
20
stdout
6
14
11
16
36
56
76
96
116
136
156
176
196
216
236
256
276
296
316
336
356
376
396
416
436
456
476
496
516
536
556
576
596
616
636
656
676
696
716
736
756
776
796
816
836
856
876
896
916
936
956
976
996
1016
1036
1056
1076
1096
1116
1136
1156
1176
1196
1216
1236
1256
1276
1296
1316
1336
1356
1376
1396
1416
1436
1456
1476
1496
1516
1536
1556
1576
1596
1616
1636
1656
1676
1696
1716
1736
1756
1776
1796
1816
1836
1856
1876
1896
1916
1936