Borderou de evaluare (job #3256562)

Utilizator tteodoraTita Georgiana Teodora tteodora Data 15 noiembrie 2024 10:27:23
Problema Numarare triunghiuri Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:20:60: error: expected ']' before ')' token 20 | u+=(n-(a[lower_bound(a+1,a+n+1,a[i]+a[j])-a)+1); | ^ | ] main.cpp:16:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 16 | for(int i=n; i>1; --i) | ^~~ main.cpp:22:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 22 | cout<<u; | ^~~~ Non zero exit status: 1

Ceva nu functioneaza?