Borderou de evaluare (job #3137384)
Utilizator | Data | 12 iunie 2023 19:06:25 | |
---|---|---|---|
Problema | Lowest Common Ancestor | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int B()':
main.cpp:19:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
19 | for(c=A();!isdigit(c);c=A());
| ^~~
main.cpp:20:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
20 | for(;isdigit(c);q=(q<<1)+(q<<3)+(c-'0'),c=A());
| ^~~
main.cpp: In function 'void C(char&)':
main.cpp:25:10: error: invalid types 'char[int]' for array subscript
25 | c[q++]=c;
| ^
main.cpp:27:25: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
27 | G.write(c,M),q=0;
| ^
| |
| char
In file included from /usr/include/c++/12.2.1/ostream:833,
from /usr/include/c++/12.2.1/istream:39,
from /usr/include/c++/12.2.1/sstream:38,
from /usr/include/c++/12.2.1/complex:45,
from /usr/include/c++/12.2.1/ccomplex:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/stdc++.h:54,
from main.cpp:1:
/usr/include/c++/12.2.1/bits/ostream.tcc:183:25: note: initializing argument 1 of 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::write(const _CharT*, std::streamsize) [with _CharT = char; _Traits = std::char_traits<char>; std::streamsize = long int]'
183 | write(const _CharT* __s, streamsize __n)
| ~~~~~~~~~~~~~~^~~
main.cpp: In function 'void D(int)':
main.cpp:38:11: error: cannot bind non-const lvalue reference of type 'char&' to an rvalue of type 'char'
38 | C('\n');
| ^~~~
main.cpp:23:21: note: initializing argument 1 of 'void C(char&)'
23 | inline void C(char& c)
| ~~~~~~^
main.cpp: In function 'int Q(const int&, const int&)':
main.cpp:91:37: error: uninitialized 'const K' [-fpermissive]
91 | const int W=L(f[x]&f[y]&~Z),K;
| ^
main.cpp:93:15: error: assignment of read-only variable 'K'
93 | W!=U?K=s[f[x]&(W-1)],X=g[((d[x]&~K)|(K+1))-1]:X=x;
| ~^~~~~~~~~~~~~~
main.cpp:94:15: error: assignment of read-only variable 'K'
94 | W!=V?K=s[f[y]&(W-1)],Y=g[((d[y]&~K)|(K+1))-1]:Y=y;
| ~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:99:42: error: 'i' was not declared in this scope
99 | for(n=B(),m=B(),memset(h,-1,4*n),i=1;i<n;x=B()-1,r[i-1]=h[x],h[x]=i-1,++i);
| ^
main.cpp:100:20: error: 'i' was not declared in this scope
100 | for(s[1]=0,i=2;i<=n+n;(i&(i-1)?s[i]=s[i-1]:s[i]=((s[i-1]+1)<<1)-1,++i);
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !