I have several errors on one program

I can't guess what's the problem, can anyone help me?

#include<iostream>
#include<vector>
#include<fstream>
using namespace std;
int some_numbers(string s);
int main()
{
int raodenoba=some_numbers("data.txt");
cout<<raodenoba<<endl;
}
int some_numbers(string s){
int k;
int count=0;
vector<int> v;
ifstream fin(s);
while(fin>>k)
v.push_back(k);
for(int i=v.size()-1;i>=0;i--)
if (v[i]%5==0 || v[i]%7==0){
cout<<v[i]<<" "<<
count++;}
return count;
}



ERRORS:
error C2065: 'string' : undeclared identifier
error C2146: syntax error : missing ')' before identifier 's'
error C2059: syntax error : ')'
error C2064: term does not evaluate to a function taking 1 arguments
error C2365: 'some_numbers' : redefinition; previous definition was 'data variable'
Last edited on
You forgot to #include <string>
LOL :D:D:D:D:D F***in string. LOL :D:D:D:D thanks
Topic archived. No new replies allowed.