You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main.cpp:1:1: error: unknown type name 'function'
function generateCodePower(code) {
^
main.cpp:1:28: error: unknown type name 'code'
function generateCodePower(code) {
^
main.cpp:2:3: error: unknown type name 'let'
let output = "";
^
main.cpp:3:8: error: unknown type name 'let'
for (let i = 0; i < code.length; i++) {
^
main.cpp:3:23: error: use of undeclared identifier 'code'
for (let i = 0; i < code.length; i++) {
^
main.cpp:4:16: error: expected unqualified-id
const char = code[i];
^
main.cpp:6:9: error: expected expression
if (/[A-Za-z]/.test(char)) {
^
main.cpp:6:12: error: expected ',' or ']' in lambda capture list
if (/[A-Za-z]/.test(char)) {
^
main.cpp:17:7: error: C++ requires a type specifier for all declarations
const code = "5=<8> ∆ quartz 13=12 or +1 temporary code power by JEFFREY +[1]9:46 quartz CARAT POWER ALPHA ROM AI 25 VOLUME OF A PRISM PNEUMATIC CAT RING";
main.cpp:18:1: error: use of undeclared identifier 'console'
console.log(generateCodePower(code));
^
main.cpp:19:1: error: unknown type name 'function'
function generateCodePower(code) {
^
main.cpp:19:33: error: expected ';' at end of declaration
function generateCodePower(code) {
^
;
main.cpp:36:1: error: use of undeclared identifier 'console'
console.log(generateCodePower(code));
^
main.cpp:37:1: error: unknown type name 'function'
function generateCodePower(code) {
^
main.cpp:37:33: error: expected ';' at end of declaration
function generateCodePower(code) {
^
;
main.cpp:54:1: error: use of undeclared identifier 'console'
console.log(generateCodePower(code));
^
main.cpp:55:1: error: unknown type name 'function'
function generateCodePower(code) {
^
main.cpp:55:33: error: expected ';' at end of declaration
function generateCodePower(code) {
^
;
main.cpp:72:1: error: use of undeclared identifier 'console'
console.log(generateCodePower(code));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
The text was updated successfully, but these errors were encountered:
=== compile output ===
main.cpp:1:1: error: unknown type name 'function'
function generateCodePower(code) {
^
main.cpp:1:28: error: unknown type name 'code'
function generateCodePower(code) {
^
main.cpp:2:3: error: unknown type name 'let'
let output = "";
^
main.cpp:3:8: error: unknown type name 'let'
for (let i = 0; i < code.length; i++) {
^
main.cpp:3:23: error: use of undeclared identifier 'code'
for (let i = 0; i < code.length; i++) {
^
main.cpp:4:16: error: expected unqualified-id
const char = code[i];
^
main.cpp:6:9: error: expected expression
if (/[A-Za-z]/.test(char)) {
^
main.cpp:6:12: error: expected ',' or ']' in lambda capture list
if (/[A-Za-z]/.test(char)) {
^
main.cpp:17:7: error: C++ requires a type specifier for all declarations
const code = "5=<8> ∆ quartz 13=12 or +1 temporary code power by JEFFREY +[1]9:46 quartz CARAT POWER ALPHA ROM AI 25 VOLUME OF A PRISM PNEUMATIC CAT RING";
The text was updated successfully, but these errors were encountered: