Web Reference: Jun 16, 2025 · The error message seems clear enough. An array subscript has to be an integer. In datos[p], p is a pointer, not an integer. You can't do that. (Well, you can do silly things like 5[array], but you're not doing that here; datos is also a pointer.) You made A an array of ints, not an int (to put is a slightly different way, A is a pointer to a memory address, not an integer value). Learn how to fix the invalid types int int for array subscript error in C++. This common error occurs when you try to access an element of an array using an invalid index type.
YouTube Excerpt: To fix the C
Information Profile Overview
Error Array Subscript Is Not - Latest Information & Updates 2026 Information & Biography

Details: $46M - $66M
Salary & Income Sources

Career Highlights & Achievements

Assets, Properties & Investments
This section covers known assets, real estate holdings, luxury vehicles, and investment portfolios. Data is compiled from public records, financial disclosures, and verified media reports.
Last Updated: April 4, 2026
Information Outlook & Future Earnings

Disclaimer: Disclaimer: Information provided here is based on publicly available data, media reports, and online sources. Actual details may vary.
![Famous Troubleshooting the invalid types ‘int[int]’ for array subscript Error in C++ Wealth](https://i.ytimg.com/vi/YLh9owYS6dY/mqdefault.jpg)



![error: invalid types 'int[int]' for array subscript Profile](https://i.ytimg.com/vi/lLhUi1GwX1g/mqdefault.jpg)
![Troubleshooting invalid types 'int[int]' for array subscript in C++ Net Worth](https://i.ytimg.com/vi/xo835Urjgio/mqdefault.jpg)
![Famous [Error] subscripted value is neither array nor pointer nor vector Net Worth](https://i.ytimg.com/vi/wMMCaA6sIN8/mqdefault.jpg)
![Celebrity Common Array Errors -- C++ Arrays for Beginners [Part 4] Net Worth](https://i.ytimg.com/vi/yucYw4Tnh3M/mqdefault.jpg)
![Celebrity Array : C Error: invalid types 'double[int]' for array subscript Profile](https://i.ytimg.com/vi/B78-I3DfkOU/mqdefault.jpg)