Problem palindromicfizzbuzz
User Evoi
Submission Time 2023-01-18 16:55:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

palindromicfizzbuzz.cpp: In function ‘int main()’:
palindromicfizzbuzz.cpp:21:23: error: conversion from ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’} to non-scalar type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} requested
21 | string word = g[fe];
| ^
palindromicfizzbuzz.cpp:27:13: error: invalid types ‘int[int]’ for array subscript
27 | if (i[x] != i[0-x]) {
| ^
palindromicfizzbuzz.cpp:27:23: error: invalid types ‘int[int]’ for array subscript
27 | if (i[x] != i[0-x]) {
| ^
palindromicfizzbuzz.cpp:38:13: error: invalid types ‘int[int]’ for array subscript
38 | if (i[x] != i[0-x]) {
| ^
palindromicfizzbuzz.cpp:38:23: error: invalid types ‘int[int]’ for array subscript
38 | if (i[x] != i[0-x]) {
| ^