Borderou de evaluare (job #1053825)
Utilizator | Data | 12 decembrie 2013 23:05:22 | |
---|---|---|---|
Problema | CMMDC | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int cmmdc()’:
user.cpp:8:9: error: ‘b’ was not declared in this scope
while (b!=0)
^
user.cpp:10:3: error: ‘r’ was not declared in this scope
r=a%b;
^
user.cpp:10:5: error: ‘a’ was not declared in this scope
r=a%b;
^
user.cpp:14:9: error: ‘a’ was not declared in this scope
return a;
^
user.cpp: In function ‘int main()’:
user.cpp:23:12: error: too many arguments to function ‘int cmmdc()’
cmmdc(a,b);
^
user.cpp:6:5: note: declared here
int cmmdc ()
^
user.cpp:25:12: error: too many arguments to function ‘int cmmdc()’
cmmdc(b,a);
^
user.cpp:6:5: note: declared here
int cmmdc ()
^
user.cpp:19:10: warning: unused variable ‘r’ [-Wunused-variable]
int a,b,r;
^
user.cpp: In function ‘int cmmdc()’:
user.cpp:15:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !