Changed my code. Still got wrong answer :(
#include <iostream>
#include <stdio.h>
#include <map>
using namespace std;
int main()
{
int n, pn;
int inum[6] = {3, 1, 1, 1, 2, 1};
string s;
map <char, int> ing;
std::map<char,int>::iterator it;
cin >> n;
getchar();
for (int i=0; i<n; i ...