Borderou de evaluare (job #2248056)

Utilizator razvanlgu31Razvan Lungu razvanlgu31 Data 29 septembrie 2018 11:10:44
Problema Unter Status done
Runda Nationala ACM ICPC 2018 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:14:21: error: ‘int pow10’ redeclared as different kind of symbol int noNote , prec , pow10 ; ^~~~~ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507, from /usr/include/c++/6/iostream:38, from user.cpp:1: /usr/include/bits/mathcalls.h:122:1: note: previous declaration ‘double pow10(double)’ __MATHCALL (pow10,, (_Mdouble_ __x)); ^ user.cpp: In function ‘int main()’: user.cpp:28:17: error: assignment of function ‘double pow10(double)’ pow10 = 1 ; ^ user.cpp:28:17: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment user.cpp:31:22: error: invalid operands of types ‘double(double) throw ()’ and ‘int’ to binary ‘operator*’ pow10 *= 10 ; ^~ user.cpp:31:22: error: in evaluation of ‘operator*=(double(double) throw (), int)’ user.cpp:38:21: error: invalid operands of types ‘double’ and ‘double(double) throw ()’ to binary ‘operator*’ nota = temp * pow10 ; ~~~~~^~~~~~~ user.cpp:40:19: error: invalid operands of types ‘int’ and ‘double(double) throw ()’ to binary ‘operator%’ if ( nota % pow10 ){ ~~~~~^~~~~~~ user.cpp:59:32: error: invalid operands of types ‘double’ and ‘double(double) throw ()’ to binary ‘operator*’ int crMedie = temp * pow10 ; ~~~~~^~~~~~~ user.cpp:62:26: error: invalid operands of types ‘int’ and ‘double(double) throw ()’ to binary ‘operator*’ if ( ( j * pow10 + sumNote ) / ( i + 1 ) == crMedie ){ ~~^~~~~~~ user.cpp:64:34: error: invalid operands of types ‘int’ and ‘double(double) throw ()’ to binary ‘operator*’ sumNote += j * pow10; ~~^~~~~~~ user.cpp:19:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("unter.in","r",stdin); ^ user.cpp:20:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("unter.out","w",stdout); ^ user.cpp:23:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&noCases); ^ user.cpp:26:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&noNote , &prec ); ^ user.cpp:35:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lf",&temp ); ^

Ceva nu functioneaza?