Search found 1 match

by yoyakazuma
Mon Jan 02, 2006 10:38 am
Forum: Volume 106 (10600-10699)
Topic: 10684 - The jackpot
Replies: 34
Views: 19076

10684 -> Runtime Error

#include<iostream> using namespace std; int main(){ int check[10005][10005],money[10005],a,b,n; while(cin >> n){ if(n==0) break; int sum=0; for(a=0;a<n;a++){ cin >> money[a]; check[a][a]=money[a]; if(check[a][a]>sum) sum=check[a][a]; } for(a=0;a<n-1;a++){ for(b=a+1;b<n;b++){ check[a][b]=check[a][b-...

Go to advanced search