Borderou de evaluare (job #3281883)
Utilizator | Data | 3 martie 2025 21:23:43 | |
---|---|---|---|
Problema | Subsecventa de suma maxima | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:14: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
7 | int a[2.450][2.450];
| ^~~~~
main.cpp:7:14: error: could not convert '2.4500000000000002e+0' from 'double' to 'long unsigned int'
7 | int a[2.450][2.450];
| ^~~~~
| |
| double
main.cpp:7:14: error: size of array 'a' has non-integral type 'double'
main.cpp:7:7: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
7 | int a[2.450][2.450];
| ^~~~~
main.cpp:7:7: error: could not convert '2.4500000000000002e+0' from 'double' to 'long unsigned int'
7 | int a[2.450][2.450];
| ^~~~~
| |
| double
main.cpp:7:7: error: size of array 'a' has non-integral type 'double'
main.cpp:8:7: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
8 | int v[2.450];
| ^~~~~
main.cpp:8:7: error: could not convert '2.4500000000000002e+0' from 'double' to 'long unsigned int'
8 | int v[2.450];
| ^~~~~
| |
| double
main.cpp:8:7: error: size of array 'v' has non-integral type 'double'
main.cpp: In function 'int main()':
main.cpp:24:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
24 | for(i1=1;i1<=n;i1++)
| ^~~
main.cpp:49:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
49 | fout<<smax;
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !