Borderou de evaluare (job #1163743)
Utilizator | Data | 1 aprilie 2014 16:44:48 | |
---|---|---|---|
Problema | Cele mai apropiate puncte din plan | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int Distanta(std::pair<int, int>, std::pair<int, int>)’:
user.cpp:18:49: error: expression cannot be used as a function
return 1LL*(a.first-b.first)(a.first-b.first)+1LL*(a.second-b.second)*(a.second-b.second);
^
user.cpp: In function ‘void Citire_si_formare()’:
user.cpp:29:14: error: ‘struct std::pair<int, int>’ has no member named ‘fist’
Y[i].fist=X[i].second;
^
user.cpp: In function ‘long long int Divide(int, int)’:
user.cpp:42:39: error: expected ‘;’ before ‘l’
return Distanta(Y[st],Y[st+1])l
^
user.cpp:42:39: error: ‘l’ was not declared in this scope
user.cpp:43:5: error: expected ‘;’ before ‘}’ token
}
^
user.cpp:46:18: error: ‘mid’ was not declared in this scope
merge(Y+st,Y+mid,Y+mid,Y+dr,aux);
^
user.cpp:53:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<Pct.size();++i)
^
user.cpp:54:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=i+1;j< Pct.size() && j-i<=8 ; ++j)
^
user.cpp: In function ‘int main()’:
user.cpp:66:27: warning: use of ‘ll’ length modifier with ‘f’ type character [-Wformat=]
printf("%llf",Rezultat);
^
user.cpp: In function ‘long long int Distanta(std::pair<int, int>, std::pair<int, int>)’:
user.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !