Borderou de evaluare (job #1318008)

Utilizator WyvernFMI Stanescu Leonard Wyvern Data 15 ianuarie 2015 14:59:35
Problema Timbre Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul II Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool cmp(pr, pr)’: user.cpp:8:32: error: a function-definition is not allowed here before ‘{’ token inline void swap(int &a,int &b){int k=a;a=b;b=k;} ^ user.cpp:9:15: error: a function-definition is not allowed here before ‘{’ token void uh(int k){while(k>1&&h[k]<h[k/2]){swap(h[k],h[k/2]);k/=2;}} ^ user.cpp:47:1: error: expected ‘}’ at end of input } ^

Ceva nu functioneaza?