Borderou de evaluare (job #582446)

Utilizator avatar GicuR Gicu Rata GicuR IP ascuns
Problemă Submultimi Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 18 feb. 2021 18:14:40 Scor 0

Raport evaluator

Eroare de compilare: main.cpp:57:5: error: redefinition of 'int n' 57 | int n,k,nr,o; | ^ main.cpp:6:5: note: 'int n' previously declared here 6 | int n,k,nr,o; | ^ main.cpp:57:7: error: redefinition of 'int k' 57 | int n,k,nr,o; | ^ main.cpp:6:7: note: 'int k' previously declared here 6 | int n,k,nr,o; | ^ main.cpp:57:9: error: redefinition of 'int nr' 57 | int n,k,nr,o; | ^~ main.cpp:6:9: note: 'int nr' previously declared here 6 | int n,k,nr,o; | ^~ main.cpp:57:12: error: redefinition of 'int o' 57 | int n,k,nr,o; | ^ main.cpp:6:12: note: 'int o' previously declared here 6 | int n,k,nr,o; | ^ main.cpp:58:5: error: redefinition of 'int sol [22]' 58 | int sol[22],d[22],a[22],sum; | ^~~ main.cpp:7:5: note: 'int sol [22]' previously declared here 7 | int sol[22],d[22],a[22],sum; | ^~~ main.cpp:58:13: error: redefinition of 'int d [22]' 58 | int sol[22],d[22],a[22],sum; | ^ main.cpp:7:13: note: 'int d [22]' previously declared here 7 | int sol[22],d[22],a[22],sum; | ^ main.cpp:58:19: error: redefinition of 'int a [22]' 58 | int sol[22],d[22],a[22],sum; | ^ main.cpp:7:19: note: 'int a [22]' previously declared here 7 | int sol[22],d[22],a[22],sum; | ^ main.cpp:58:25: error: redefinition of 'int sum' 58 | int sol[22],d[22],a[22],sum; | ^~~ main.cpp:7:25: note: 'int sum' previously declared here 7 | int sol[22],d[22],a[22],sum; | ^~~ main.cpp:60:10: error: redefinition of 'std::ifstream cin' 60 | ifstream cin("submultimi.in");