Borderou de evaluare (job #2568313)

Utilizator dolhasca001Birleanu Matei dolhasca001 Data 3 martie 2020 22:01:12
Problema Castel3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int schimb_baza(int)': main.cpp:9:9: warning: unused variable 'k' [-Wunused-variable] int k=0,a,b,c,d,nr; ^ main.cpp: In function 'int main()': main.cpp:65:23: error: no match for 'operator=' (operand types are 'ura' and 'int') a[i-1][j]=x; ^ main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(const ura&) struct ura ^~~ main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'const ura&' main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(ura&&) main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'ura&&' main.cpp:66:23: error: no match for 'operator=' (operand types are 'ura' and 'int') a[i][j+1]=y; ^ main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(const ura&) struct ura ^~~ main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'const ura&' main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(ura&&) main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'ura&&' main.cpp:67:23: error: no match for 'operator=' (operand types are 'ura' and 'int') a[i+1][j]=z; ^ main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(const ura&) struct ura ^~~ main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'const ura&' main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(ura&&) main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'ura&&' main.cpp:68:23: error: no match for 'operator=' (operand types are 'ura' and 'int') a[i][j-1]=h; ^ main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(const ura&) struct ura ^~~ main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'const ura&' main.cpp:23:8: note: candidate: constexpr ura& ura::operator=(ura&&) main.cpp:23:8: note: no known conversion for argument 1 from 'int' to 'ura&&' main.cpp:56:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(i=1;i<=n;i++) ^~~ main.cpp:89:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' cout<<a[4][2].jos; ^~~~ Non zero exit status: 1

Ceva nu functioneaza?