Borderou de evaluare (job #1666723)
Utilizator | Data | 28 martie 2016 12:25:02 | |
---|---|---|---|
Problema | Zidar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:15: error: ‘int rand [10001]’ redeclared as different kind of symbol
int rand[10001];
^
In file included from /usr/include/c++/4.8/cstdlib:72:0,
from /usr/include/c++/4.8/ext/string_conversions.h:41,
from /usr/include/c++/4.8/bits/basic_string.h:2815,
from /usr/include/c++/4.8/string:52,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/stdlib.h:380:12: error: previous declaration of ‘int rand()’
extern int rand (void) __THROW;
^
user.cpp: In function ‘int main()’:
user.cpp:27:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[0] = 0;
^
user.cpp:27:13: error: assignment of function ‘int rand()’
rand[0] = 0;
^
user.cpp:27:13: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:33:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if (sol[l] > 0 && rand[l] == k-1)
^
user.cpp:33:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (sol[l] > 0 && rand[l] == k-1)
^
user.cpp:46:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[l+p] = k;
^
user.cpp:46:43: error: assignment of read-only location ‘*(rand + ((sizetype)(l + p)))’
rand[l+p] = k;
^
user.cpp:46:43: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !