Problem | fizzbuzz |
---|---|
User | duanwei |
Submission Time | 2025-01-25 15:46:07 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | 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 |
fizzbuzz.cpp:10:13: error: ‘cout’ was not declared in this scope
10 | cout << "FizzBuzz" << endl;
| ^~~~
fizzbuzz.cpp:10:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:10:35: error: ‘endl’ was not declared in this scope
10 | cout << "FizzBuzz" << endl;
| ^~~~
fizzbuzz.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 |
fiz