Borderou de evaluare (job #1443095)
Utilizator | Data | 26 mai 2015 22:49:55 | |
---|---|---|---|
Problema | Datorii | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void add_to_fenwick(std::vector<short int>&, int, int)’:
user.cpp:8:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (; poz < fenwick.size(); poz += fenwick_delta(poz)) {
^
user.cpp: In function ‘void citeste_date(FILE*, int&, std::vector<int>&)’:
user.cpp:27:45: error: invalid initialization of reference of type ‘std::vector<short int>&’ from expression of type ‘std::vector<int>’
add_to_fenwick(fenwick, i, x);
^
user.cpp:7:6: error: in passing argument 1 of ‘void add_to_fenwick(std::vector<short int>&, int, int)’
void add_to_fenwick(vector< short > &fenwick, int poz, const int val) {
^
user.cpp: In function ‘int main()’:
user.cpp:36:35: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<short int>’
citeste_date(f, m, fenwick);
^
user.cpp:21:6: error: in passing argument 3 of ‘void citeste_date(FILE*, int&, std::vector<int>&)’
void citeste_date(FILE *f, int &m, vector< int > &fenwick) {
^
user.cpp: In function ‘void citeste_date(FILE*, int&, std::vector<int>&)’:
user.cpp:23:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, " %d %d ", &n, &m);
^
user.cpp:26:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, " %d ", &x);
^
user.cpp: In function ‘int main()’:
user.cpp:38:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, " %d %d %d ", &t, &a, &b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !