Borderou de evaluare (job #3236244)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:2:74: warning: multi-character character constant [-Wmultichar]
2 | using namespace std;ifstream f("rmq.in");ofstream g("rmq.out");int a[17]['■'],n,q,i,j,k,l,r;main(){f>>n>>q;while(i<n)f>>a[0][i++];while(j++<16)for(i=0;i<n;i++)a[j][i]=min(a[j-1][i],a[j-1][i+(1<<j-1)]);for(;f>>l>>r;k=__lg(r-l),g<<min(a[k][l-1],a[k][r-(1<<k)])<<' ');}
| ^~~
main.cpp:2:93: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | using namespace std;ifstream f("rmq.in");ofstream g("rmq.out");int a[17]['■'],n,q,i,j,k,l,r;main(){f>>n>>q;while(i<n)f>>a[0][i++];while(j++<16)for(i=0;i<n;i++)a[j][i]=min(a[j-1][i],a[j-1][i+(1<<j-1)]);for(;f>>l>>r;k=__lg(r-l),g<<min(a[k][l-1],a[k][r-(1<<k)])<<' ');}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:196: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
2 | using namespace std;ifstream f("rmq.in");ofstream g("rmq.out");int a[17]['■'],n,q,i,j,k,l,r;main(){f>>n>>q;while(i<n)f>>a[0][i++];while(j++<16)for(i=0;i<n;i++)a[j][i]=min(a[j-1][i],a[j-1][i+(1<<j-1)]);for(;f>>l>>r;k=__lg(r-l),g<<min(a[k][l-1],a[k][r-(1<<k)])<<' ');}
| ~^~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 303kb | Incorect | 0 | 0 |
2 | 0ms | 303kb | Incorect | 0 | 0 |
3 | 1ms | 819kb | Incorect | 0 | 0 |
4 | 9ms | 3964kb | Incorect | 0 | 0 |
5 | 14ms | 4128kb | Incorect | 0 | 0 |
6 | 84ms | 6758kb | Incorect | 0 |
7 | 84ms | 7983kb | Incorect | 0 | 0 |
8 | 99ms | 9703kb | Incorect | 0 | 0 |
9 | 109ms | 9961kb | Incorect | 0 | 0 |
10 | 123ms | 10436kb | Incorect | 0 | 0 |
Punctaj total | 0 |