Borderou de evaluare (job #1671920)
Utilizator | Data | 2 aprilie 2016 11:34:58 | |
---|---|---|---|
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:4:13: error: variable ‘std::ifstream fin’ has initializer but incomplete type
ifstream fin("lgput.in");
^
user.cpp:5:14: error: variable ‘std::ofstream fout’ has initializer but incomplete type
ofstream fout("lgput.out");
^
user.cpp: In function ‘int lgpow(int, int)’:
user.cpp:12:5: error: ‘else’ without a previous ‘if’
else if(exp%2==0)
^
user.cpp:12:13: error: ‘exp’ was not declared in this scope
else if(exp%2==0)
^
user.cpp:13:9: error: ‘reutrn’ was not declared in this scope
reutrn semipow;
^
user.cpp:13:16: error: expected ‘;’ before ‘semipow’
reutrn semipow;
^
user.cpp:16: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 !