fork download
  1. #include <fstream>
  2. #include <iostream>
  3. #include <string>
  4.  
  5. const std::string expression1 =
  6. "one;two;three;Efour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
  7. "fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
  8. "twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
  9. "twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
  10. "four";
  11. const std::string expression2 =
  12. "one;two;three;Tfour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
  13. "fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
  14. "twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
  15. "twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
  16. "four";
  17. const std::string expression3 =
  18. "one;two;three;Wfour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
  19. "fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
  20. "twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
  21. "twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
  22. "four";
  23. const std::string expression4 =
  24. "one;two;three;Xfour;five;six;seven;eight;nine;ten;eleven;twelve;thirteen;"
  25. "fourteen;fifteen;sixteen;seventeen;eighteen;nineteen;twenty;twenty-one;"
  26. "twenty-two;twenty-three;twenty-four;twenty-five;twenty-six;twenty-seven;"
  27. "twenty-eight;twenty-nine;thirty;thirty-one;thirty-two;thirty-three;thirty-"
  28. "four";
  29.  
  30. int main()
  31. {
  32. std::ofstream outfile("/Users/me/Desktop/codereviewCSVparser/outfile.csv");
  33. for (int i = 0; i < 250*1000; ++i) {
  34. outfile << expression1 << "\n"
  35. << expression2 << "\n"
  36. << expression3 << "\n"
  37. << expression4 << "\n";
  38. }
  39. return 0;
  40. }
  41.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: illegal character: '#'
#include <fstream>
^
Main.java:1: error: class, interface, or enum expected
#include <fstream>
         ^
Main.java:2: error: illegal character: '#'
#include <iostream>
^
Main.java:3: error: illegal character: '#'
#include <string>
^
Main.java:11: error: class, interface, or enum expected
const std::string expression2 =
^
Main.java:17: error: class, interface, or enum expected
const std::string expression3 =
^
Main.java:23: error: class, interface, or enum expected
const std::string expression4 =
^
Main.java:30: error: class, interface, or enum expected
int main()
^
Main.java:33: error: class, interface, or enum expected
  for (int i = 0; i < 250*1000; ++i) {
  ^
Main.java:33: error: class, interface, or enum expected
  for (int i = 0; i < 250*1000; ++i) {
                  ^
Main.java:33: error: class, interface, or enum expected
  for (int i = 0; i < 250*1000; ++i) {
                                ^
Main.java:38: error: class, interface, or enum expected
  }
  ^
Main.java:40: error: class, interface, or enum expected
}
^
13 errors
stdout
Standard output is empty