Borderou de evaluare (job #3378407)
| Utilizator | Data | 26 noiembrie 2026 11:21:47 | |
|---|---|---|---|
| Problema | Strabunica | 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:30:42: error: 'a' was not declared in this scope
30 | while(!s.empty() && v[s.back()]>=a[i])
| ^
main.cpp:34:13: error: reference to 'left' is ambiguous
34 | left[i]=0;
| ^~~~
In file included from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
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:10:
/usr/include/c++/12.2.1/bits/ios_base.h:1038:3: note: candidates are: 'std::ios_base& std::left(ios_base&)'
1038 | left(ios_base& __base)
| ^~~~
main.cpp:14:11: note: 'int left [200005]'
14 | int v[N], left[N], right[N];
| ^~~~
main.cpp:36:13: error: reference to 'left' is ambiguous
36 | left[i]=s.back();
| ^~~~
/usr/include/c++/12.2.1/bits/ios_base.h:1038:3: note: candidates are: 'std::ios_base& std::left(ios_base&)'
1038 | left(ios_base& __base)
| ^~~~
main.cpp:14:11: note: 'int left [200005]'
14 | int v[N], left[N], right[N];
| ^~~~
main.cpp:42:42: error: 'a' was not declared in this scope
42 | while(!s.empty() && v[s.back()]>=a[i])
| ^
main.cpp:46:13: error: reference to 'right' is ambiguous
46 | right[i]=n+1;
| ^~~~~
/usr/include/c++/12.2.1/bits/ios_base.h:1046:3: note: candidates are: 'std::ios_base& std::right(ios_base&)'
1046 | right(ios_base& __base)
| ^~~~~
main.cpp:14:20: note: 'int right [200005]'
14 | int v[N], left[N], right[N];
| ^~~~~
main.cpp:48:13: error: reference to 'right' is ambiguous
48 | right[i]=s.back();
| ^~~~~
/usr/include/c++/12.2.1/bits/ios_base.h:1046:3: note: candidates are: 'std::ios_base& std::right(ios_base&)'
1046 | right(ios_base& __base)
| ^~~~~
main.cpp:14:20: note: 'int right [200005]'
14 | int v[N], left[N], right[N];
| ^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
