We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af50984 commit 2261f3aCopy full SHA for 2261f3a
test/problems/hellounix/submissions/run_time_error/test-memsize_512.cc
@@ -16,6 +16,6 @@ const size_t mb = 513;
16
int main() {
17
std::cerr << "Trying to allocate at least: " << 513 << " MB" << std::endl;
18
vector<char> v(513 * 1024 * 1024);
19
- std::cerr << "Allocated: " << v.size() << " MB" << std::endl;
+ std::cerr << "Allocated: " << (v.end() - v.begin()) << " MB" << std::endl;
20
return 0;
21
}
0 commit comments