Borderou de evaluare (job #683662)

Utilizator avatar otilia.marin Marin Otilia otilia.marin IP ascuns
Problemă Reuniunea a doua intervale Compilator cpp-32
Rundă lasm_21_12_2022_cl12 Status evaluat
Dată 21 dec. 2022 19:39:44 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:19:25: warning: capture of variable 'r1' with non-automatic storage duration 19 | return [r1,r2]; //cout<<"["<<r1<<","<<r2<<"]"<<endl; | ^~ main.cpp:6:23: note: 'int r1' declared here 6 | int a1, a2, b1, b2, r1, r2; | ^~ main.cpp:19:28: warning: capture of variable 'r2' with non-automatic storage duration 19 | return [r1,r2]; //cout<<"["<<r1<<","<<r2<<"]"<<endl; | ^~ main.cpp:6:27: note: 'int r2' declared here 6 | int a1, a2, b1, b2, r1, r2; | ^~ main.cpp: In lambda function: main.cpp:19:31: error: expected '{' before ';' token 19 | return [r1,r2]; //cout<<"["<<r1<<","<<r2<<"]"<<endl; | ^ main.cpp: In function 'int main()': main.cpp:19:31: error: invalid user-defined conversion from 'main()::<lambda()>' to 'int' [-fpermissive] main.cpp:19:24: note: candidate is: 'main()::<lambda()>::operator void (*)()() const' (near match) 19 | return [r1,r2]; //cout<<"["<<r1<<","<<r2<<"]"<<endl; | ^ main.cpp:19:24: note: no known conversion from 'void (*)()' to 'int'