Borderou de evaluare (job #2912036)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 6 iulie 2022 17:53:55
Problema Suma si numarul divizorilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:7: error: conversion from 'double' to 'long unsigned int' in a converted constant expression 7 | int v[5e5],k,j; | ^~~ main.cpp:7:7: error: could not convert '5.0e+5' from 'double' to 'long unsigned int' main.cpp:7:7: error: size of array 'v' has non-integral type 'double' main.cpp:8:8: error: conversion from 'double' to 'long unsigned int' in a converted constant expression 8 | bool a[1e6]; | ^~~ main.cpp:8:8: error: could not convert '1.0e+6' from 'double' to 'long unsigned int' main.cpp:8:8: error: size of array 'a' has non-integral type 'double' main.cpp: In function 'int main()': main.cpp:18:38: error: expected ')' before ';' token 18 | for(F>>n;n--;G<<r<<' '<<m%M<<'\n';) { | ~ ^ | ) main.cpp:18:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 18 | for(F>>n;n--;G<<r<<' '<<m%M<<'\n';) { | ^~~ main.cpp:18:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 18 | for(F>>n;n--;G<<r<<' '<<m%M<<'\n';) { | ^ main.cpp:18:39: error: expected primary-expression before ')' token Non zero exit status: 1

Ceva nu functioneaza?