Borderou de evaluare (job #3154098)

Utilizator miruna0001010Cocosila Miruna miruna0001010 Data 3 octombrie 2023 10:56:27
Problema Paduri de multimi disjuncte Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:15:13: error: invalid types 'int[int]' for array subscript 15 | cin >> h[i]; | ^ main.cpp:18:5: error: redeclaration of 'int cnt' 18 | int cnt = 0, o,r ,s ; | ^~~ main.cpp:8:10: note: 'int cnt' previously declared here 8 | { int n, cnt = 0,i,nr,j,h ; | ^~~ main.cpp:20:15: warning: right operand of comma operator has no effect [-Wunused-value] 20 | for (i = 1, i <= n, j++) | ~~^~~~ main.cpp:20:24: error: expected ';' before ')' token 20 | for (i = 1, i <= n, j++) | ^ | ; main.cpp:99:2: error: expected primary-expression at end of input 99 | } | ^ main.cpp:99:2: error: expected ';' at end of input 99 | } | ^ | ; main.cpp:99:2: error: expected primary-expression at end of input main.cpp:99:2: error: expected ')' at end of input 99 | } | ^ | ) main.cpp:20:5: note: to match this '(' 20 | for (i = 1, i <= n, j++) | ^ main.cpp:99:2: error: expected statement at end of input 99 | } | ^ main.cpp:99:2: error: expected '}' at end of input main.cpp:8:1: note: to match this '{' 8 | { int n, cnt = 0,i,nr,j,h ; | ^ main.cpp:8:10: warning: unused variable 'cnt' [-Wunused-variable] 8 | { int n, cnt = 0,i,nr,j,h ; | ^~~ main.cpp:8:20: warning: unused variable 'nr' [-Wunused-variable] 8 | { int n, cnt = 0,i,nr,j,h ; | ^~ main.cpp:18:14: warning: unused variable 'o' [-Wunused-variable] 18 | int cnt = 0, o,r ,s ; | ^ main.cpp:18:16: warning: unused variable 'r' [-Wunused-variable] 18 | int cnt = 0, o,r ,s ; Non zero exit status: 1

Ceva nu functioneaza?