fork(1) download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. const int MAX_LENGTH = 2000;
  6.  
  7. int main() {
  8. char array[2000];
  9. while (cin.getline(array, MAX_LENGTH)) {
  10. int length = strlen(array);
  11. //for (int i )
  12. cout << length <<" ";
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5324KB
stdin
Gogonelele! Sunt bUune
RAU!
stdout
22 4