Borderou de evaluare (job #3262250)
Utilizator | Data | 9 decembrie 2024 16:18:43 | |
---|---|---|---|
Problema | Galerie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:74:20: error: cannot convert 'long long int*' to 'int*'
74 | update(aib1,l,c);
| ^~~~
| |
| long long int*
main.cpp:29:17: note: initializing argument 1 of 'void update(int*, int, int)'
29 | void update(int aib[NMAX+1],int p,int x)
| ~~~~^~~~~~~~~~~
main.cpp:79:39: error: cannot convert 'long long int*' to 'int*'
79 | res[p.id] = max(0ll,query(aib1,p.l)*(r-p.l-p.k));
| ^~~~
| |
| long long int*
main.cpp:36:14: note: initializing argument 1 of 'long long int query(int*, int)'
36 | ll query(int aib[NMAX+1],int p)
| ~~~~^~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !