Borderou de evaluare (job #846122)

Utilizator avatar ionuts Ionut Sirghii ionuts IP ascuns
Problemă Run (clasa a 8-a) Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 21 dec. 2025 10:53:56 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:48:25: error: no match for call to '(main()::<lambda(int, int)>) (int&, int&, double&)' 48 | double t = calcT(i,j,L); | ~~~~~^~~~~~~ main.cpp:38:18: note: candidate: 'main()::<lambda(int, int)>' 38 | auto calcT = [&](int a, int b) -> double { | ^ main.cpp:38:18: note: candidate expects 2 arguments, 3 provided main.cpp:68:39: error: no match for call to '(main()::<lambda(int, int)>) (int&, int&, double&)' 68 | double t_new = e.t + calcT(agresor,victim_next,L); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp:38:18: note: candidate: 'main()::<lambda(int, int)>' 38 | auto calcT = [&](int a, int b) -> double { | ^ main.cpp:38:18: note: candidate expects 2 arguments, 3 provided main.cpp:19:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | freopen("run.in","r",stdin); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~ main.cpp:20:12: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 20 | freopen("run.out","w",stdout); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~