Borderou de evaluare (job #2941693)

Utilizator redstonegamer22Andrei Ion redstonegamer22 Data 18 noiembrie 2022 02:22:45
Problema Connect Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void q_undo()': main.cpp:85:26: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 85 | for(int i = 0; i <= update_count / 2; i++) { | ~~^~~~~~~~~~~~~~ main.cpp:86:26: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 86 | // std::cerr << i << " " << std::endl; | ~~^~~~~~~~~~~~~~~~~~~ main.cpp:92:26: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 92 | | ^ main.cpp:114:26: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 114 | for(int i = 0; i < pushable + pushed_past; i++) dsu_update(edge[q_updates[update_count - pushable - pushed_past + i] >> 1]); | ~~^~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:115:26: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 115 | } | ^ main.cpp: In function 'int main()': main.cpp:124:23: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 124 | for(int i = 0; i < m; i++) { | ^ main.cpp:14:21: note: initializing argument 1 of 'void rd(int&)' 14 | inline void rd(int& _r) { | ~~~~~^~ main.cpp:124:30: error: cannot bind non-const lvalue reference of type 'int&' to an rvalue of type 'int' 124 | for(int i = 0; i < m; i++) { | ^ main.cpp:14:21: note: initializing argument 1 of 'void rd(int&)' 14 | inline void rd(int& _r) { | ~~~~~^~ main.cpp:125:22: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 125 | int x, y; rd(x); rd(y); | ~~^~~ main.cpp:129:22: warning: comparison of integer expressions of different signedness: 'int' and 'uint32_t' {aka 'unsigned int'} [-Wsign-compare] 129 | size_father[i] = (1 << 16) + i; | ~~^~~~ Non zero exit status: 1

Ceva nu functioneaza?