fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4. using namespace std;
  5.  
  6. int main(){
  7. ifstream sentences;
  8. string sentenceplacement, sentholder;
  9. sentences.open("sentence.txt");
  10. if (!sentences.is_open()){
  11. while(!sentences.eof()){
  12. getline(sentences, sentenceplacement);
  13. cout <<sentenceplacement;
  14. }
  15. sentences.close();
  16. }
  17. }
Time limit exceeded #stdin #stdout 5s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty