Borderou de evaluare (job #1190372)

Utilizator armandpredaPreda Armand armandpreda Data 25 mai 2014 11:01:10
Problema Suma si numarul divizorilor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:4:13: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}’ and ‘int’ to binary ‘operator%’ #define MOD 9973 ^ user.cpp:40:60: note: in expansion of macro ‘MOD’ s=s+1ll*((pow(p[i],exp+1)-1)/(p[i]-1))%MOD; ^ user.cpp:22:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ssnd.in","r",stdin); ^ user.cpp:23:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ssnd.out","w",stdout); ^ user.cpp:27:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:31:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^

Ceva nu functioneaza?