Borderou de evaluare (job #723932)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Vecini (clasa a 8-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 14 iun. 2023 15:51:11 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:36: error: no match for 'operator[]' (operand types are 'std::bitset<1000001>::reference' and 'int')
9 | for(F>>n>>m>>p;p--;F>>i>>j,a[i][j]=1);
| ^
main.cpp:12:73: error: no match for 'operator[]' (operand types are 'std::bitset<1000001>::reference' and 'int')
12 | for(l=k=0;k<8;l+=(i+x[k]&&j+y[k]&&i+x[k]<=n&&j+y[k]<=m&&a[i][j]==a[i+x[k]][j+y[k]]),++k);
| ^
main.cpp:12:87: error: no match for 'operator[]' (operand types are 'std::bitset<1000001>::reference' and 'int')
12 | for(l=k=0;k<8;l+=(i+x[k]&&j+y[k]&&i+x[k]<=n&&j+y[k]<=m&&a[i][j]==a[i+x[k]][j+y[k]]),++k);
| ^