Borderou de evaluare (job #1548195)

Utilizator jimcarterJim Carter jimcarter Data 10 decembrie 2015 17:27:53
Problema Arbori indexati binar Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:44: error: ‘int exp’ redeclared as different kind of symbol int N , nrQueries , Tree [ MAX ] , value , exp , S , sum , totalSum , left , right , i , mid , queryType , index , pos; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:101:1: error: previous declaration of ‘double exp(double)’ __MATHCALL (exp,, (_Mdouble_ __x)); ^ user.cpp: In function ‘void update(int, int)’: user.cpp:11:6: error: overloaded function with no contextual type information exp = 0; ^ user.cpp:15:29: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’ while ( !( index & ( 1 << exp ) ) ) ^ user.cpp:16:8: error: no post-increment operator for type exp ++; ^ user.cpp:17:19: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’ index += ( 1 << exp ); ^ user.cpp:18:7: error: no post-increment operator for type exp ++; ^ user.cpp: In function ‘int detSum(int)’: user.cpp:24:6: error: overloaded function with no contextual type information exp = 0; totalSum = 0; ^ user.cpp:28:30: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’ while ( !( index & ( 1 << exp ) ) ) ^ user.cpp:29:8: error: no post-increment operator for type exp ++; ^ user.cpp:30:19: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’ index -= ( 1 << exp ); ^ user.cpp:31:7: error: no post-increment operator for type exp ++; ^ user.cpp: In function ‘void read()’: user.cpp:72:42: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( f , "%d %d" , &N , &nrQueries ); ^ user.cpp:75:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf ( f , "%d" , &value ); ^

Ceva nu functioneaza?