| Problem | fizzbuzz |
|---|---|
| User | ayreentazz |
| Submission Time | 2026-06-22 22:45:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
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:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
fizzbuzz.cpp:8:9: error: ‘string’ was not declared in this scope
8 | string s = "";
| ^~~~~~
fizzbuzz.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | using namespace std;
fizzbuzz.cpp:10:25: error: ‘s’ was not declared in this scope
10 | if (i % A == 0) s += "Fizz";
| ^
fizzbuzz.cpp:11:25: error: ‘s’ was not declared in this scope
11 | if (i % B == 0) s += "Buzz";
| ^
fizzb