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

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> N >> A >> B;
| ^~~
fizzbuzz.cpp:9:18: error: ‘cout’ is not a member of ‘std’
9 | std::cout << "FizzBuzz";
| ^~~~
fizzbuzz.cpp:2:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <string>
+++ |+#include <iostream>
2 |
fizzbuzz.cpp:11:18: error: ‘cout’ is not a member of ‘std’
11 | std::cout << "Fizz";
| ^~~~
fizzbuzz.cpp:11:18: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:13:18: error: ‘cout’ is not a member of ‘std’
13 | std::cout << "Buzz";
| ^~~~
fizzbuzz.cpp:13:18: note: ‘std::cout’ is d