Hi all,
I followed this guide to starting to learning CUDA: An Even Easier Introduction to CUDA | NVIDIA Technical Blog so i wrote the same code but some comment to understand it better.
I can’t understand why Visual Studio won’t compile it but nvcc correctly compile the code. I see some highlighted keywords like these:

If i compile i receive these errors in different code lines:
- error C2144;
- error C4430;
- error C3861;
- error C2059.
Hope someone could help me,
Thank you.