Borderou de evaluare (job #1900440)
Utilizator | Data | 3 martie 2017 13:07:28 | |
---|---|---|---|
Problema | Spion | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int Comb(long long int, long long int)’:
user.cpp:32:34: error: invalid initialization of non-const reference of type ‘long long int&’ from an rvalue of type ‘long long int*’
InvMod(factorial, MOD, &x, &y);
^
user.cpp:8:6: error: in passing argument 3 of ‘void InvMod(long long int, long long int, long long int&, long long int&)’
void InvMod(long long a, long long b, long long &x, long long &y){
^
user.cpp:23:30: warning: unused variable ‘j’ [-Wunused-variable]
long long i, result = 1, j = 1;
^
user.cpp: In function ‘int main()’:
user.cpp:45:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file1, "%lld", &P);
^
user.cpp:46:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(file1, "%s", path);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !