Problem fizzbuzz
User Spikey
Submission Time 2023-02-10 17:42:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:13: error: ‘cout’ was not declared in this scope
8 | cout<<"FizzBuzz";
| ^~~~
fizzbuzz.cpp:1:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
fizzbuzz.cpp:10:13: error: ‘cout’ was not declared in this scope
10 | cout<<"Fizz ";
| ^~~~
fizzbuzz.cpp:10:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:12:13: error: ‘cout’ was not declared in this scope
12 | cout<<"Buzz ";
| ^~~~
fizzbuzz.cpp:12:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:14:13: error: ‘cout’ was not declared in this scope
14 |