Borderou de evaluare (job #2751604)
Utilizator | Data | 15 mai 2021 13:12:42 | |
---|---|---|---|
Problema | Interclasari | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:13: error: 'int pow10 [11]' redeclared as different kind of symbol
int pow10[11] = {1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 1000000000, INF}; ///intrebare legata de asta: dc nu merge sa pun in vector 1e2
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/iostream:38,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:122:1: note: previous declaration 'double pow10(double)'
__MATHCALL (pow10,, (_Mdouble_ __x));
^
main.cpp: In function 'int main()':
main.cpp:39:21: warning: unused variable 'nr' [-Wunused-variable]
int k, n, i, j, nr;
^~
main.cpp: In function 'void writeInt(int)':
main.cpp:97:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
while (pow10[i] <= nr)
^
main.cpp:97:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while (pow10[i] <= nr)
^~
main.cpp:103:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
while (nr >= pow10[i])
^
main.cpp:103:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
main.cpp:106:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
nr -= pow10[i];
^
main.cpp:106:26: error: invalid operands of types 'int' and 'double(double) throw ()' to binary 'operator-'
main.cpp:106:26: error: in evaluation of 'operator-=(int, double(double) throw ())'
main.cpp: In function 'char getChar()':
main.cpp:70:37: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(rBuf, 1, BUFSIZE, fin);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !