Borderou de evaluare (job #3220746)
Utilizator | Data | 4 aprilie 2024 18:46:41 | |
---|---|---|---|
Problema | Kami | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void update_sum(int, long long int)':
main.cpp:19:9: warning: statement has no effect [-Wunused-value]
19 | for(poz;poz;poz-=(poz*(-poz)))
| ^~~
main.cpp: In function 'void query_sum(int)':
main.cpp:25:9: warning: statement has no effect [-Wunused-value]
25 | for(poz;poz<=n;poz+=(poz*(-poz)))
| ^~~
main.cpp:27:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
27 | return sum;
| ^~~
main.cpp: In function 'int main()':
main.cpp:157:23: error: invalid operands of types 'long long int' and 'void' to binary 'operator*'
157 | val=(-1LL)*query_sum(poz+1);
| ~~~~~~^~~~~~~~~~~~~~~~~
| | |
| long long int void
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !