fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. char str[20];
  7. while (cin >> str) cout << strlen(str) << ' ';
  8. return 0;
  9. }
Success #stdin #stdout 0s 15232KB
stdin
5^2-7*4/2 = 11
stdout
9 1 2