Borderou de evaluare (job #2134367)
Utilizator | Data | 17 februarie 2018 21:23:13 | |
---|---|---|---|
Problema | Harry Potter | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:34:21: error: invalid types ‘int[int]’ for array subscript
m[cop1][cop2]=m[cop1][cop2]+1;}
^
user.cpp:34:35: error: invalid types ‘int[int]’ for array subscript
m[cop1][cop2]=m[cop1][cop2]+1;}
^
user.cpp:40:37: error: expected ‘)’ before ‘lin’
if((a[i].lin>n)||(a[i]lin<1)) {cc--;break;}
^
user.cpp:40:30: error: no match for ‘operator||’ (operand types are ‘bool’ and ‘<anonymous struct>’)
if((a[i].lin>n)||(a[i]lin<1)) {cc--;break;}
^
user.cpp:40:30: note: candidate: operator||(bool, bool) <built-in>
user.cpp:40:30: note: no known conversion for argument 2 from ‘<anonymous struct>’ to ‘bool’
user.cpp:41:17: error: expected ‘)’ before ‘m’
m[a[i].col][a[i].lin]++;}
^
user.cpp:47:37: error: expected ‘)’ before ‘lin’
if((a[i].lin>n)||(a[i]lin<1)) {cc--;break;}
^
user.cpp:47:30: error: no match for ‘operator||’ (operand types are ‘bool’ and ‘<anonymous struct>’)
if((a[i].lin>n)||(a[i]lin<1)) {cc--;break;}
^
user.cpp:47:30: note: candidate: operator||(bool, bool) <built-in>
user.cpp:47:30: note: no known conversion for argument 2 from ‘<anonymous struct>’ to ‘bool’
user.cpp:48:18: error: expected ‘)’ before ‘m’
m[a[i].col][a[i].lin]++;}
^
user.cpp:57:9: error: invalid types ‘int[int]’ for array subscript
maxx=m[1][1];
^
user.cpp:61:11: error: invalid types ‘int[int]’ for array subscript
if(m[i][j]>maxx) {maxx=m[i][j];c1=i;c2=j;}
^
user.cpp:61:31: error: invalid types ‘int[int]’ for array subscript
if(m[i][j]>maxx) {maxx=m[i][j];c1=i;c2=j;}
^
user.cpp:62:16: error: invalid types ‘int[int]’ for array subscript
if(maxx=m[i][j]) {if(i<c1) {maxx=m[i][j];c1=i;c2=j;}
^
user.cpp:62:42: error: invalid types ‘int[int]’ for array subscript
if(maxx=m[i][j]) {if(i<c1) {maxx=m[i][j];c1=i;c2=j;}
^
user.cpp:63:33: error: invalid types ‘int[int]’ for array subscript
if(i==c1) if(j<c2) {maxx=m[i][j];c1=i;c2=j;}}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !