Borderou de evaluare (job #1487538)
Utilizator | Data | 16 septembrie 2015 23:27:15 | |
---|---|---|---|
Problema | Algoritmul lui Euclid | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:2:21: error: ‘b’ has not been declared
int cmmdc(int a,int,b)
^
user.cpp: In function ‘int cmmdc(int, int, int)’:
user.cpp:5:8: error: ‘b’ was not declared in this scope
while(b)
^
user.cpp: In function ‘int main()’:
user.cpp:16:2: error: ‘cin’ was not declared in this scope
cin>>n;
^
user.cpp:17:6: error: ‘i’ was not declared in this scope
for(i=1;i<=n;i++)
^
user.cpp:20:3: error: ‘cout’ was not declared in this scope
cout<<cmmdc(a,b)<<"\n";
^
user.cpp:20:18: error: too few arguments to function ‘int cmmdc(int, int, int)’
cout<<cmmdc(a,b)<<"\n";
^
user.cpp:2:5: note: declared here
int cmmdc(int a,int,b)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !