Borderou de evaluare (job #1072964)
Utilizator | Petreanu Alexandru quarian | Data | 5 ianuarie 2014 14:27:07 |
---|---|---|---|
Problema | Inv | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void printVector(std::vector<int>)’:
user.cpp:21:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < vect.size(); ++i) {
^
user.cpp: In function ‘std::vector<long long int> merge(std::vector<long long int>, std::vector<long long int>)’:
user.cpp:30:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pl < left.size() && pr < right.size()) {
^
user.cpp:30:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pl < left.size() && pr < right.size()) {
^
user.cpp:40:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pl < left.size()) {
^
user.cpp:44:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (pr < right.size()) {
^
user.cpp: In function ‘std::vector<long long int> mergeSort(int, int)’:
user.cpp:61:16: error: could not convert ‘rez’ from ‘std::vector<int>’ to ‘std::vector<long long int>’
return rez;
^
user.cpp: In function ‘int main(int, char**)’:
user.cpp:69:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &n);
^
user.cpp:71:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", nrs + i);
^
user.cpp:74:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n", nr_inv % 9917);
^
user.cpp: In function ‘std::vector<long long int> mergeSort(int, int)’:
user.cpp:63: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 !