HELP PLEASE

#include <fstream>
using namespace std;
ifstream fin("tema.in");
ofstream fout("tema.out");
int main()
{
int n,v[100],m,c[100];
fin>>n;
fin>>m;
for(int i=1;i<=n;i++)
{
c[i]=i;
}
for(int i=1;i<=m;i++)
{
fin>>v[i];
c[v[i]]=0;
}
for(int j=1;j<=n;j++)
{
if(c[j]==0)
j++;
else
cout<<c[j]<<" ";
}
return 0;
}


It sais cout was not declared in this scope... Could you please help me??? THANK YOU!!!
It looks like you've only included <fstream> - cout is in <iostream>

http://www.cplusplus.com/reference/iostream/
Thank you very much!
Topic archived. No new replies allowed.