Borderou de evaluare (job #2020014)

Utilizator mirelPmirel p mirelP Data 9 septembrie 2017 11:35:36
Problema Numarare triunghiuri Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int cautare(int, int)’: user.cpp:12:11: error: ‘n’ was not declared in this scope int r=n,st=b+1,m,val=v[i]+v[j];; ^ user.cpp:13:11: error: ‘st’ was not declared in this scope while(st<=r) ^ user.cpp:15:9: error: ‘m’ was not declared in this scope m=(st+r)/2; ^ user.cpp:16:13: error: ‘val’ was not declared in this scope if (val<v[m]) r=m-1; ^ user.cpp: At global scope: user.cpp:24:1: error: expected declaration before ‘}’ token } ^

Ceva nu functioneaza?