Problem fizzbuzz
User altaf
Submission Time 2025-01-23 16:57:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:9:4: error: ‘cout’ was not declared in this scope
9 | cout << "Fizz";
| ^~~~
fizzbuzz.cpp:2:1: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <stdio.h>
+++ |+#include <iostream>
2 | using namespace std;
fizzbuzz.cpp:13:4: error: ‘cout’ was not declared in this scope
13 | cout << "Buzz";
| ^~~~
fizzbuzz.cpp:13:4: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:18:4: error: ‘cout’ was not declared in this scope
18 | cout << i;
| ^~~~
fizzbuzz.cpp:18:4: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:21:3: error: ‘cout’ was not declared in this scope
21 | cout << "\n";
|