Borderou de evaluare (job #2028966)

Utilizator bcrisBianca Cristina bcris Data 28 septembrie 2017 21:22:08
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 ‘int ridicarea()’: user.cpp:18:18: error: expected primary-expression before ‘;’ token n = (n * n) % ; ^ user.cpp: In function ‘int main(int, const char**)’: user.cpp:35:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d %d\n", &n, &p); ^ user.cpp:35:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:37:26: error: too many arguments to function ‘int ridicarea()’ int n_p = ridicarea(n, p); ^ user.cpp:11:5: note: declared here int ridicarea() { ^ user.cpp:32:33: 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:33:35: 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:35:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &p); ^

Ceva nu functioneaza?