Problem fizzbuzz
User claireau
Submission Time 2024-06-05 21:30:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:13:9: error: expected primary-expression before ‘=’ token
13 | if (i%==A && i%==B){
| ^
fizzbuzz.cpp:13:18: error: expected primary-expression before ‘=’ token
13 | if (i%==A && i%==B){
| ^
fizzbuzz.cpp:14:31: error: no matching function for call to ‘to_string(const char [9])’
14 | result+=to_string("fizzbuzz");
| ^
In file included from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from fizzbuzz.cpp:1:
/usr/include/c++/9/bits/basic_string.h:6549:3: note: candidate: ‘std::string std::__cxx11::to_string(int)’ <near ma