Borderou de evaluare (job #2936277)
Utilizator | Data | 8 noiembrie 2022 14:37:26 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:10: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
5 | int tata[1e6]={0},h[1e6]={0};
| ^~~
main.cpp:5:10: error: could not convert '1.0e+6' from 'double' to 'long unsigned int'
main.cpp:5:10: error: size of array 'tata' has non-integral type 'double'
main.cpp:5:21: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
5 | int tata[1e6]={0},h[1e6]={0};
| ^~~
main.cpp:5:21: error: could not convert '1.0e+6' from 'double' to 'long unsigned int'
main.cpp:5:21: error: size of array 'h' has non-integral type 'double'
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !