0_0_22011730_16273.cpp: In function 'int main()':
0_0_22011730_16273.cpp:7:2: error: 'ios' has not been declared
ios::sync_with_stdio(false);
^
0_0_22011730_16273.cpp:9:8: error: 'cin' was not declared in this scope
while(cin>>n)
^
0_0_22011730_16273.cpp:9:8: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_22011730_16273.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:60:18: note: 'std::cin'
extern istream cin; /// Linked to standard input
^
0_0_22011730_16273.cpp:16:3: error: 'vector' was not declared in this scope
vector<int> b;
^
0_0_22011730_16273.cpp:16:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/vector:64:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/random.h:34,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:49,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
from 0_0_22011730_16273.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_vector.h:214:11: note: 'std::vector'
class vector : protected _Vector_base<_Tp, _Alloc>
^
0_0_22011730_16273.cpp:16:10: error: expected primary-expression before 'int'
vector<int> b;
^
0_0_22011730_16273.cpp:27:4: error: 'b' was not declared in this scope
b.push_back(a[i];)
^
0_0_22011730_16273.cpp:27:20: error: expected ')' before ';' token
b.push_back(a[i];)
^
0_0_22011730_16273.cpp:27:21: error: expected primary-expression before ')' token
b.push_back(a[i];)
^
0_0_22011730_16273.cpp:29:13: error: 'b' was not declared in this scope
for(i=0;i<b.size();i++)
^
0_0_22011730_16273.cpp:34:3: error: 'cout' was not declared in this scope
cout<<ans<<endl;
^
0_0_22011730_16273.cpp:34:3: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:74:0,
from 0_0_22011730_16273.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^
0_0_22011730_16273.cpp:34:14: error: 'endl' was not declared in this scope
cout<<ans<<endl;
^
0_0_22011730_16273.cpp:34:14: note: suggested alternative:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/istream:39:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/sstream:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/complex:45,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/ccomplex:38,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:52,
from 0_0_22011730_16273.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:564:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^
|