|
|
back to boardwhat is test 4 ? my code here: Posted by Tom 6 Aug 2011 23:21 it gives good output for every test i came up with... i dont know where is the mistake and code is very simple help pls #include <iostream> using namespace std; int main(){
int n,i; int* tab; int tabL[11]={0}; cin >> n; tab = new int [n]; for(i=0;i<n;i++){ cin >> tab[i]; tabL[tab[i]]++; } for(i=0;i<11;i++){ if(tabL[i]!=0){ cout << tabL[i] << " " << i << " "; } } getchar();getchar(); return 0; } Re: what is test 4 ? my code here: reread the statement |
|
|