Borderou de evaluare (job #2577168)
Utilizator | Data | 8 martie 2020 16:41:08 | |
---|---|---|---|
Problema | Reborn | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:20: error: 'int index' redeclared as different kind of symbol
int dp[22][200005],index=1,maxim=0,n,m,q;
^~~~~
In file included from /usr/include/c++/6/cstring:42:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48,
from main.cpp:1:
/usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)'
index (const char *__s, int __c) __THROW
^~~~~
main.cpp: In function 'int main()':
main.cpp:33:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=1; i<=m; i++)
^~~
main.cpp:35:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
sort(v+1,v+m+1,cmp);
^~~~
main.cpp:38:20: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator<='
while(index<=m&&v[index].x<=i)
~~~~~^~~
main.cpp:38:32: error: invalid types 'interval [200005][<unresolved overloaded function type>]' for array subscript
while(index<=m&&v[index].x<=i)
^
main.cpp:39:36: error: invalid types 'interval [200005][<unresolved overloaded function type>]' for array subscript
{ maxim=max(maxim,v[index].y);
^
main.cpp:40:18: error: no post-increment operator for type
index++;
^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !