Borderou de evaluare (job #1680744)

Utilizator MKLOLDragos Ristache MKLOL Data 9 aprilie 2016 01:02:24
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 long int powx(long long int, long long int)’: user.cpp:10:22: error: ‘p’ was not declared in this scope long long w=p(x,y/2); ^ user.cpp:15:22: error: ‘p’ was not declared in this scope long long w=p(x,y-1)%MOD; ^ user.cpp: In function ‘int main()’: user.cpp:23:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lgput.in","r",stdin); ^ user.cpp:24:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lgput.out","w",stdout); ^ user.cpp:25:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld %lld",&N,&M); ^

Ceva nu functioneaza?