header file problem

When I compiled this code, it's giving that cout and system pause are undeclared.What's wrong with iostream lib?

#include<iostream>
using namespace std;

int main()
{
int a=11;
int *ptr;
ptr=&a;
cout << a;
system("pause");
return 0;
}
what is your compiler?
Dev c++ 4.9.9.2 .It was working fine earlier and my codes was running fine too,but now when I run those previous codes I came up with the same error that no include path in which to search for iostream.
Last edited on
Topic archived. No new replies allowed.