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

Compile Error

fizzbuzz.cpp: In function ‘int main()’:
fizzbuzz.cpp:11:2: error: ‘String’ was not declared in this scope
11 | String N;
| ^~~~~~
fizzbuzz.cpp:12:7: error: ‘i’ was not declared in this scope
12 | for (i=1; i=>N;){
| ^
fizzbuzz.cpp:12:14: error: expected primary-expression before ‘>’ token
12 | for (i=1; i=>N;){
| ^
fizzbuzz.cpp:13:9: error: expected primary-expression before ‘=’ token
13 | if (i%==A;i%==B){
| ^
fizzbuzz.cpp:13:15: error: expected primary-expression before ‘=’ token
13 | if (i%==A;i%==B){
| ^
fizzbuzz.cpp:14:26: error: no matching function for call to ‘to_string(const char [9])’
14 | N+=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/bit