Skip to content

Commit 2261f3a

Browse files
committed
test
1 parent af50984 commit 2261f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/problems/hellounix/submissions/run_time_error/test-memsize_512.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ const size_t mb = 513;
1616
int main() {
1717
std::cerr << "Trying to allocate at least: " << 513 << " MB" << std::endl;
1818
vector<char> v(513 * 1024 * 1024);
19-
std::cerr << "Allocated: " << v.size() << " MB" << std::endl;
19+
std::cerr << "Allocated: " << (v.end() - v.begin()) << " MB" << std::endl;
2020
return 0;
2121
}

0 commit comments

Comments
 (0)