Borderou de evaluare (job #2869262)
Utilizator | Data | 11 martie 2022 13:33:26 | |
---|---|---|---|
Problema | Evaluarea unei expresii | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:17: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
12 | #define dim 1e9 + 2
| ~~~~^~~
main.cpp:18:10: note: in expansion of macro 'dim'
18 | char sir[dim], *p = sir;
| ^~~
main.cpp:12:17: error: could not convert '(1.0e+9 + (double)2)' from 'double' to 'long unsigned int'
12 | #define dim 1e9 + 2
| ~~~~^~~
main.cpp:18:10: note: in expansion of macro 'dim'
18 | char sir[dim], *p = sir;
| ^~~
main.cpp:12:17: error: size of array 'sir' has non-integral type 'double'
12 | #define dim 1e9 + 2
| ~~~~^~~
main.cpp:18:10: note: in expansion of macro 'dim'
18 | char sir[dim], *p = sir;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !