Problem | fizzbuzz |
---|---|
User | JoshuaPyh |
Submission Time | 2023-08-03 17:03:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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:13: error: ‘cout’ was not declared in this scope
9 | cout << "FizzBuzz" << std::endl;
| ^~~~
fizzbuzz.cpp:9:40: error: ‘endl’ is not a member of ‘std’
9 | cout << "FizzBuzz" << std::endl;
| ^~~~
fizzbuzz.cpp:2:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
1 | #include <string>
+++ |+#include <ostream>
2 |
fizzbuzz.cpp:11:13: error: ‘cout’ was not declared