| Problem | fizzbuzz |
|---|---|
| User | lxmine |
| Submission Time | 2026-05-26 23:01:22 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:6:49: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
6 | if (i%a==0 && i%b ==0){std::cout<<"FizzBuzz"<<endl;}
| ^~~~
| std::endl
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from fizzbuzz.cpp:1:
/usr/include/c++/9/ostream:599:5: note: ‘std::endl’ declared here
599 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
fizzbuzz.cpp:7:4: error: ‘else’ without a previous ‘if’
7 | } else if (i%a==0){std::cout<<"Fizz"<<endl;}
| ^~~~
fizzbuz