Problem fizzbuzz
User JoshuaPyh
Submission Time 2023-08-03 17:04:35
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:13: error: ‘cout’ was not declared in this scope
9 | cout << "FizzBuzz";
| ^~~~
fizzbuzz.cpp:11:13: error: ‘cout’ was not declared in this scope
11 | cout << "Fizz";
| ^~~~
fizzbuzz.cpp:13:13: error: ‘cout’ was not declared in this scope
13 | cout << "Buzz";
| ^~~~
fizzbuzz.cpp:15:13: error: ‘cout’ was not declared in this scope
15 | cout << i;
| ^~~~