Reading invalid data from ' ': the readable size is '40' bytes, but '44' bytes may be read - C++

  • Thread starter Thread starter Arash_89
  • Start date Start date
A

Arash_89

Guest
Hello,

What is this and how can I fix it?

Thanks

1522262.jpg


#include<iostream>
using namespace std;

int main() {

int n; cin >> n;
int arr[10] = { 0 };
while (n)
{
arr[n%10]++;
n /= 10;
}
for (int i = 0; i < 10; i++)
{
cout << i<<": "<<arr << " "<<endl;
}
}

Continue reading...
 
Back
Top