Borderou de evaluare (job #1647192)
Utilizator | Data | 10 martie 2016 19:23:35 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long int putere(int, int)’:
user.cpp:12:3: error: ‘x1’ was not declared in this scope
x1 *= x2;
^
user.cpp:12:9: error: ‘x2’ was not declared in this scope
x1 *= x2;
^
user.cpp:15:3: error: ‘cout’ was not declared in this scope
cout << x1 << " " << n << "\n";
^
user.cpp:17:9: error: ‘x1’ was not declared in this scope
return x1;
^
user.cpp: In function ‘int main()’:
user.cpp:26:21: error: too many arguments to function ‘long int putere(int, int)’
g << putere(x, x, n);
^
user.cpp:8:6: note: declared here
long putere(int x, int n)
^
user.cpp: In function ‘long int putere(int, int)’:
user.cpp:18: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 !