Borderou de evaluare (job #1719009)
Utilizator | Data | 19 iunie 2016 11:50:49 | |
---|---|---|---|
Problema | Referat | Status | done |
Runda | Algoritmiada 2016 Runda 4 Juniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:16: error: ‘int rand [100005]’ redeclared as different kind of symbol
int rand[100005];
^
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/ostream:38,
from /usr/include/c++/4.8/iostream:39,
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:14:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[0]=1;
^
user.cpp:14:12: error: assignment of function ‘int rand()’
rand[0]=1;
^
user.cpp:14:12: error: cannot convert ‘int’ to ‘int()throw ()’ in assignment
user.cpp:21:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]=rand[i-1]+1;
^
user.cpp:21:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]=rand[i-1]+1;
^
user.cpp:21:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:21:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]=rand[i-1]+1;
^
user.cpp:21:20: error: assignment of read-only location ‘*(rand + ((sizetype)i))’
rand[i]=rand[i-1]+1;
^
user.cpp:21:20: error: cannot convert ‘int (*)()throw ()’ to ‘int()throw ()’ in assignment
user.cpp:25:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]=rand[i-1];
^
user.cpp:25:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
rand[i]=rand[i-1];
^
user.cpp:25:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:25:20: error: assignment of read-only location ‘*(rand + ((sizetype)i))’
rand[i]=rand[i-1];
^
user.cpp:25:20: error: cannot convert ‘int()throw ()’ to ‘int()throw ()’ in assignment
user.cpp:36:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !