Borderou de evaluare (job #3195507)
Utilizator | Data | 21 ianuarie 2024 00:23:52 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void AIB::add(ll, ll)':
main.cpp:89:35: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
89 | void add(ll p,ll val=1){for(;p<v.size();p+=lsb(p))v[p]+=val;}
| ~^~~~~~~~~
main.cpp: In function 'void precalcfact()':
main.cpp:181:10: warning: unused variable 'j' [-Wunused-variable]
181 | ll i,j;
| ^
main.cpp: At global scope:
main.cpp:234:5: error: ISO C++ forbids declaration of 'ask' with no type [-fpermissive]
234 | ask(ll l,ll r)
| ^~~
main.cpp: In function 'void solve(ll)':
main.cpp:247:10: warning: unused variable 'm' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp:247:12: warning: unused variable 'i' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp:247:14: warning: unused variable 'j' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp:247:16: warning: unused variable 'k' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp:247:18: warning: unused variable 'l' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp:247:20: warning: unused variable 'p' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp:247:26: warning: unused variable 'z' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp:247:28: warning: unused variable 't' [-Wunused-variable]
247 | ll n,m,i,j,k,l,p,x,y,z,t,q;
| ^
main.cpp: In instantiation of 'RMQ<T, C>::RMQ(std::vector<_Tp>&) [with T = long long int; C = std::less<long long int>]':
main.cpp:251:19: required from here
main.cpp:220:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
220 | while((1ll<<lg)<=v.size())lg++;
| ~~~~~~~~~^~~~~~~~~~
main.cpp:222:18: warning: comparison of integer expressions of different signedness: 'll' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
222 | for(i=0;i<v.size();i++)
| ~^~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !