Borderou de evaluare (job #994029)
Utilizator | Data | 4 septembrie 2013 21:01:05 | |
---|---|---|---|
Problema | Livada | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:31: error: ‘long int rand [700001]’ redeclared as different kind of symbol
long int i,j,m,n,p,rand[700001],maxtemp,MAX=1;
^
In file included from /usr/local/include/c++/4.8.0/cstdlib:72:0,
from /usr/local/include/c++/4.8.0/ext/string_conversions.h:41,
from /usr/local/include/c++/4.8.0/bits/basic_string.h:2817,
from /usr/local/include/c++/4.8.0/string:52,
from /usr/local/include/c++/4.8.0/bits/locale_classes.h:40,
from /usr/local/include/c++/4.8.0/bits/ios_base.h:41,
from /usr/local/include/c++/4.8.0/ios:42,
from /usr/local/include/c++/4.8.0/ostream:38,
from /usr/local/include/c++/4.8.0/iostream:39,
from user.cpp:2:
/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:19:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fscanf(f,"%ld",&rand[1]);
^
user.cpp:19:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int (*)()throw ()’ [-Wformat=]
fscanf(f,"%ld",&rand[1]);
^
user.cpp:24:35: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fscanf(f,"%ld",&rand[j]);
^
user.cpp:24:36: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int (*)()throw ()’ [-Wformat=]
fscanf(f,"%ld",&rand[j]);
^
user.cpp:26:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(rand[j]==rand[j-1])
^
user.cpp:26:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(rand[j]==rand[j-1])
^
user.cpp:26:33: 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 !