Ajay,
Please take a look at page 39 of the STM32F411RE datasheet. Pin PC_13 is not connected to the ADC module, which is why it can’t be used as an analog input.
You will see these runtime errors usually for one of two reasons:
1) The pin you’ve selected cannot be used the way you’re trying to use it. Examples of this are trying to create a Serial object where one or both pins aren’t connected/can’t be muxed to one of the uarts on the processor, trying to create an AnalogIn object with a pin that isn’t connected/can’t be muxed to the ADC module, etc.
2) There’s a bug or missing pin mapping in the platform’s PeripheralPins.c file.
Hope this helps.
Cheers,
Mike