Borderou de evaluare (job #1891916)
Utilizator | Data | 24 februarie 2017 14:05:36 | |
---|---|---|---|
Problema | Divizor si multiplu | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cmmdc(int, int)’:
user.cpp:6:9: error: declaration of ‘int a’ shadows a parameter
int a,b,r;
^
user.cpp:6:11: error: declaration of ‘int b’ shadows a parameter
int a,b,r;
^
user.cpp: In function ‘int cmmmc(int, int)’:
user.cpp:18:5: error: expected unqualified-id before ‘while’
while(b!=0)
^
user.cpp:24:12: error: ‘ca’ was not declared in this scope
cmmmc=(ca*cb)/a;
^
user.cpp:24:15: error: ‘cb’ was not declared in this scope
cmmmc=(ca*cb)/a;
^
user.cpp:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !