Borderou de evaluare (job #2248373)
Utilizator | Data | 29 septembrie 2018 12:28:17 | |
---|---|---|---|
Problema | Unter | Status | done |
Runda | Nationala ACM ICPC 2018 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:71:6: warning: "/*" within comment [-Wcomment]
/*
user.cpp:12:19: error: ‘long long int pow10 [10]’ redeclared as different kind of symbol
long long pow10[10];
^
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/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:33,
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:18:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[0] = 1;
^
user.cpp:18:13: error: assignment of function ‘double pow10(double)’
pow10[0] = 1;
^
user.cpp:18:13: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:20:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[i] = pow10[i - 1] * 10;
^
user.cpp:20:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pow10[i] = pow10[i - 1] * 10;
^
user.cpp:20:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:20:27: error: invalid operands of types ‘double(double) throw ()’ and ‘int’ to binary ‘operator*’
pow10[i] = pow10[i - 1] * 10;
~~~~~~~~~~~~~^~~~
user.cpp:29:39: warning: pointer to a function used in arithmetic [-Wpointer-arith]
v[i] = (long long)(aux[i] * pow10[d]);
^
user.cpp:29:30: error: invalid operands of types ‘long double’ and ‘double(double) throw ()’ to binary ‘operator*’
v[i] = (long long)(aux[i] * pow10[d]);
~~~~~~~^~~~~~~~~~
user.cpp:44:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if ( (sum + j * pow10[d]) / i == v[i] )
^
user.cpp:44:19: error: invalid operands of types ‘long long int’ and ‘double(double) throw ()’ to binary ‘operator*’
if ( (sum + j * pow10[d]) / i == v[i] )
~~^~~~~~~~~~
user.cpp:46:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
sum += j * pow10[d];
^
user.cpp:46:15: error: invalid operands of types ‘long long int’ and ‘double(double) throw ()’ to binary ‘operator*’
sum += j * pow10[d];
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !