Borderou de evaluare (job #1900422)
Utilizator | Data | 3 martie 2017 13:02:23 | |
---|---|---|---|
Problema | Invers modular | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void InvMod(int, int, int&, int&)’:
user.cpp:10:34: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int*’
InvMod(b, a % b, &x0, &y0);
^
user.cpp:3:6: error: in passing argument 3 of ‘void InvMod(int, int, int&, int&)’
void InvMod(int a, int b, int &x, int &y){
^
user.cpp: In function ‘int main()’:
user.cpp:18:5: error: ‘ll’ was not declared in this scope
ll inv = 0, ins;
^
user.cpp:18:8: error: expected ‘;’ before ‘inv’
ll inv = 0, ins;
^
user.cpp:23:21: error: ‘A’ was not declared in this scope
scanf("%d %d", &A, &N);
^
user.cpp:23:25: error: ‘N’ was not declared in this scope
scanf("%d %d", &A, &N);
^
user.cpp:24:15: error: ‘inv’ was not declared in this scope
gcd(A, N, inv, ins);
^
user.cpp:24:20: error: ‘ins’ was not declared in this scope
gcd(A, N, inv, ins);
^
user.cpp:24:23: error: ‘gcd’ was not declared in this scope
gcd(A, N, inv, ins);
^
user.cpp:20:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inversmodular.in", "r", stdin);
^
user.cpp:21:46: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("inversmodular.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !