Problem fizzbuzz
User JoshuaPyh
Submission Time 2023-08-03 17:02:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:5:10: error: ‘cin’ is not a member of ‘std’
5 | std::cin >> N >> A >> B;
| ^~~
fizzbuzz.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <string>
+++ |+#include <iostream>
2 |
fizzbuzz.cpp:9:18: error: ‘cout’ is not a member of ‘std’
9 | std::cout << "FizzBuzz" << std::endl;
| ^~~~
fizzbuzz.cpp:9:18: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:9:45: error: ‘endl’ is not a member of ‘std’
9 | std::cout << "FizzBuzz" << std::endl;
| ^~~~
fizzbuzz.cpp:2:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream&