The following code prints count as 0. But s.length() is 11 so shouldn't count be 10011?
int main() {
clock_t start_time = clock();
string s = "hello world";
int count = 0;
for (int i = -10000; i < s.length(); i++) {
count++;
}
cout << count << endl;
cout << clock() - start_time;
return 0;
}