Borderou de evaluare (job #1260976)

Utilizator SzymonSidorSzymonSidor SzymonSidor Data 11 noiembrie 2014 20:22:33
Problema Invazie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘long long int power(long long int, int)’: user.cpp:12:33: error: ‘restRez’ was not declared in this scope rest = rest * val % restRez; ^ user.cpp:13:27: error: ‘restRez’ was not declared in this scope val = val * val % restRez; ^ user.cpp:16:25: error: ‘restRez’ was not declared in this scope return val * rest % restRez; ^ user.cpp: In function ‘int main()’: user.cpp:24:17: error: ‘testCases’ was not declared in this scope for (cin >> testCases; testCases; testCases--) { ^ user.cpp:27:42: error: ‘restRez’ was not declared in this scope long long suma = power((k + p) % restRez, n); ^ user.cpp: In function ‘long long int power(long long int, int)’: user.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type] } ^

Ceva nu functioneaza?