fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. Contents of the file:
  6. 99.5
  7. 97.2
  8. 98.7
  9. 96
  10. 100
  11. 81.4
  12. 95.6
  13. 74.7
  14. 91.6
  15. 92
  16. 76.9
  17. 87
  18. 84.2
  19. 75.3
  20. 88.6
  21. 93.7
  22. 67.1
  23. 95.8
  24. 89.3
  25. 90.9
  26. 65.9
  27. 64.1
  28. 68.8
  29. 63
  30. 63.8
  31. 84.3
  32. 88.6
  33. 89.6
  34. 95.4
  35. 85.5
  36. 75.7
  37. 72.9
  38. 83.1
  39. 95
  40. 98.4
  41. ------
  42. output:
  43.  
  44. Value #1: 99.5
  45. Value #2: 97.2
  46. Value #3: 98.7
  47. ect. (It just goes on)
  48.  
  49. and then the second output should display
  50.  
  51. The variance of the 35 values is: 135.76
  52. the standard deviation of the 35 values is 11.65
  53. the mean of the 35 values is: 84.85
  54.  
  55. return 0;
  56. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:44:7: error: stray '#' in program
 Value #1: 99.5
       ^
prog.cpp:45:7: error: stray '#' in program
 Value #2: 97.2
       ^
prog.cpp:46:7: error: stray '#' in program
 Value #3: 98.7
       ^
prog.cpp: In function 'int main()':
prog.cpp:5:1: error: 'Contents' was not declared in this scope
 Contents of the file:
 ^
stdout
Standard output is empty