Borderou de evaluare (job #1949299)
Utilizator | Data | 1 aprilie 2017 21:39:08 | |
---|---|---|---|
Problema | Principiul includerii si excluderii | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long unsigned int solve(long long unsigned int, long long unsigned int)’:
user.cpp:73:32: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long unsigned int>’
sum += pise(b, x, 0, i, 1, 0);
^
user.cpp:35:20: error: in passing argument 1 of ‘long long unsigned int pise(std::vector<int>&, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)’
unsigned long long pise(vector<int> &b, unsigned long long x, unsigned long long numbers_taken, unsigned long long number,unsigned long long product,unsigned long long poz)
^
user.cpp:75:32: error: invalid initialization of reference of type ‘std::vector<int>&’ from expression of type ‘std::vector<long long unsigned int>’
sum -= pise(b, x, 0, i, 1, 0);
^
user.cpp:35:20: error: in passing argument 1 of ‘long long unsigned int pise(std::vector<int>&, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)’
unsigned long long pise(vector<int> &b, unsigned long long x, unsigned long long numbers_taken, unsigned long long number,unsigned long long product,unsigned long long poz)
^
user.cpp: In function ‘int main()’:
user.cpp:84:16: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long unsigned int*’ [-Wformat=]
scanf("%d", &t);
^
user.cpp:81:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pinex.in", "r", stdin);
^
user.cpp:82:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pinex.out", "w", stdout);
^
user.cpp:84:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:90:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu %llu", &x, &y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !