Borderou de evaluare (job #1490428)
Utilizator | Data | 23 septembrie 2015 15:42:21 | |
---|---|---|---|
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:3:7: error: expected nested-name-specifier before ‘namesapce’
using namesapce std;
^
user.cpp:3:7: error: ‘namesapce’ has not been declared
user.cpp:3:17: error: expected ‘;’ before ‘std’
using namesapce std;
^
user.cpp:3:17: error: ‘std’ does not name a type
user.cpp:4:1: error: ‘ifstream’ does not name a type
ifstream fin("Igput.in");
^
user.cpp:5:1: error: ‘ofstream’ does not name a type
ofstream fout("Igput.out");
^
user.cpp:7:20: error: ‘p’ has not been declared
int bin_exp(int n, p){
^
user.cpp: In function ‘int bin_exp(int, int)’:
user.cpp:9:8: error: ‘p’ was not declared in this scope
while(p){
^
user.cpp: In function ‘int main()’:
user.cpp:21:2: error: ‘fin’ was not declared in this scope
fin >> N >> P;
^
user.cpp:22:2: error: ‘fout’ was not declared in this scope
fout << bin_exp(N,P);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !