Borderou de evaluare (job #614121)

Utilizator avatar AlexandruCondorache Condorache Alexandru AlexandruCondorache IP ascuns
Problemă Tdrept (clasa a 8-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 3 nov. 2021 17:25:38 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:9:9: error: conflicting declaration 'int x' 9 | int x, y,n; | ^ main.cpp:8:30: note: previous declaration as 'int x [100002]' 8 | int X[100002], Y[100002],x[100002],y[100002]; | ^ main.cpp:9:12: error: conflicting declaration 'int y' 9 | int x, y,n; | ^ main.cpp:8:40: note: previous declaration as 'int y [100002]' 8 | int X[100002], Y[100002],x[100002],y[100002]; | ^ main.cpp:21:10: error: invalid types 'int [100002][int [100002]]' for array subscript 21 | X[x]++; | ^ main.cpp:22:10: error: invalid types 'int [100002][int [100002]]' for array subscript 22 | Y[y]++; | ^