Auto keyword is showing compiler error

27 11 C:\Users\jpriy\Desktop\C++Program\car sorting problem.cpp [Error] ‘p’ does not name a type
What can I do to correct it

@priya_Jain, send your code here using ide.codingblocks.com , so i can check if there is any error in your code

@priya_Jain, check your c++ version for you to use auto keyword you need to have c++ version >=11 , so if you are using ide like code blocks then change your compiler setting and change the c++ version to c++ 11 or c++15,c++17 , u don’t need to install anything