0

It shows the build is successful and even displays the output but it gives me a red flag which states "Unable to resolve identifier name" for the following code:

#include<iostream>
#include <cstdio>
#include<typeinfo>
using namespace std;

int main() {
    auto num = 10;
    cout<<typeid(num).name(); //Red Flag out here (a bulb with red ! mark) and name() is underlined with red color.
    return 0;
}

The result I get is: i

Dinnerspy
  • 310
  • 1
  • 17
Akash
  • 75
  • 1
  • 8

0 Answers0