Borderou de evaluare (job #1552320)

Utilizator gabrielinelusGabriel-Robert Inelus gabrielinelus Data 17 decembrie 2015 19:22:38
Problema Dk Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:60:1: error: ‘__int64’ does not name a type __int64 power(int a, int n, int mod) ^ user.cpp: In function ‘bool witness(int, int)’: user.cpp:77:2: error: ‘__int64’ was not declared in this scope __int64 prev,curr; ^ user.cpp:77:10: error: expected ‘;’ before ‘prev’ __int64 prev,curr; ^ user.cpp:87:18: error: ‘power’ was not declared in this scope prev=power(a,u,n); ^ user.cpp:90:3: error: ‘curr’ was not declared in this scope curr=(prev*prev)%n; ^ user.cpp:90:14: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’ curr=(prev*prev)%n; ^ user.cpp:91:24: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’ if((curr==1)&&(prev!=1)&&(prev!=n-1)) ^ user.cpp:91:37: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator!=’ if((curr==1)&&(prev!=1)&&(prev!=n-1)) ^ user.cpp:95:5: error: ‘curr’ was not declared in this scope if(curr!=1) ^ user.cpp: In function ‘void Scanf(int&)’: user.cpp:49:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buffer,1,DIM,stdin), pz = 0; ^ user.cpp:54:46: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fread(buffer,1,DIM,stdin), pz = 0; ^ user.cpp: In function ‘int main()’: user.cpp:131:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dk.in","r",stdin); ^ user.cpp:132:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("dk.out","w",stdout); ^

Ceva nu functioneaza?