Problem fizzbuzz
User calvinkulit
Submission Time 2026-06-22 15:38:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:8:19: error: expected ‘;’ before ‘>=’ token
8 | for (int i = 0, i >= 10, i++){
| ^~~
| ;
fizzbuzz.cpp:8:20: error: expected primary-expression before ‘>=’ token
8 | for (int i = 0, i >= 10, i++){
| ^~
fizzbuzz.cpp:8:30: error: expected ‘;’ before ‘)’ token
8 | for (int i = 0, i >= 10, i++){
| ^
| ;
fizzbuzz.cpp:9:22: error: expected identifier before ‘(’ token
9 | if (i % A == 0) && (i % B == 0){
| ^
fizzbuzz.cpp:13:9: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘const char [5]’)
13 | cout >> "Fizz";
| ~~~~ ^~ ~~~~~~
| | |
| | const char [5]
|