Borderou de evaluare (job #3290380)

Utilizator Iustin.DDragusanu Iustin Iustin.D Data 30 martie 2025 16:18:58
Problema Secventa 5 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:11:16: error: conversion from '__gnu_cxx::__promote<double>::__type' {aka 'double'} to 'long unsigned int' in a converted constant expression 11 | int v[pow(2,20)+10]; | ~~~~~~~~~^~~ main.cpp:11:16: error: could not convert '(std::pow<int, int>(2, 20) + (__gnu_cxx::__promote<double, false>::__type)10)' from '__gnu_cxx::__promote<double>::__type' {aka 'double'} to 'long unsigned int' 11 | int v[pow(2,20)+10]; | ~~~~~~~~~^~~ | | | __gnu_cxx::__promote<double>::__type {aka double} main.cpp:11:16: error: size of array 'v' has non-integral type '__gnu_cxx::__promote<double>::__type' {aka 'double'} Non zero exit status: 1

Ceva nu functioneaza?