Problem fizzbuzz
User Yuhan
Submission Time 2025-06-11 08:39:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:7:2: error: ‘ion_base’ has not been declared
7 | ion_base::sync_with_stdio(false);
| ^~~~~~~~
fizzbuzz.cpp:8:2: error: ‘cin’ was not declared in this scope
8 | cin.tie(0);
| ^~~
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:10:21: error: ‘n’ was not declared in this scope
10 | for(int i = 1;i <= n;i++){
| ^
fizzbuzz.cpp:12:4: error: ‘cout’ was not declared in this scope
12 | cout << "Fizzbuzz";
| ^~~~
fizzbuzz.cpp:12:4: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
fizzbuzz.cpp:15:4: error: ‘cout’ was not declared in this scope
15 | cout << "Fizz";
| ^~~~
fizzbuzz.cpp: