Borderou de evaluare (job #2645120)
Utilizator | Data | 27 august 2020 10:37:04 | |
---|---|---|---|
Problema | Submatrix | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve(int, int)':
main.cpp:22:30: error: lvalue required as increment operand
if( (++ap[v[k][j]]) == 1)
^
main.cpp:24:50: error: lvalue required as increment operand
for(int k=j-t; k<=j; ++k) if(++ap[v[i][k]]==1) ++nr;
^
main.cpp:29:58: error: lvalue required as decrement operand
for(int k=i-t+1; k<=i; ++k) if(--ap[v[k][j-t]]==0) --nr;
^
main.cpp:30:56: error: lvalue required as decrement operand
for(int k=j-t; k<=j; ++k) if(--ap[v[i-t][k]]==0) --nr;
^
main.cpp:32:9: error: 'ans' was not declared in this scope
ans=max(ans,t);
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !