vector->at(i) ?
Posted: Sat Mar 05, 2005 12:15 pm
Hi, I have submited a solution which uses the function vector::at(int) and i got CE...
What am i doing wrong? this simple code causes a Compile Error:
Help me plz!
What am i doing wrong? this simple code causes a Compile Error:
Code: Select all
#include <vector>
int main(){
vector<int>* vc = new vector<int>();
return vc->at(0);
}
Code: Select all
no matching function for call to `vector<int,allocator<int> >::at (int)
Help me plz!