Problem | fizzbuzz |
---|---|
User | claireau |
Submission Time | 2024-06-05 21:38:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:13:8: error: ‘a’ was not declared in this scope
13 | if (i%a==0 && i%B==0){
| ^
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 match>
6549 | to_string(int __val)
| ^~~~~~~~~
/usr/include/c++/9/bits/basic_string.h:6549:3: note: conversion of argument 1