Borderou de evaluare (job #1930230)
Utilizator | Data | 18 martie 2017 17:13:57 | |
---|---|---|---|
Problema | Shuffle | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:37: error: ‘int index’ redeclared as different kind of symbol
int v[MaxN],aux[MaxN],I[MaxN],N,P=0,index=0,Size[MaxN];
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from user.cpp:1:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void GetPeriod(int)’:
user.cpp:32:12: error: no post-increment operator for type
I[i]=index++;
^
user.cpp: In function ‘int main()’:
user.cpp:55:21: error: overloaded function with no contextual type information
if(!found[i])index=0,++P,GetPeriod(i);
^
user.cpp:56:10: error: cannot resolve overloaded function ‘index’ based on conversion to type ‘int’
Size[P]=index;
^
user.cpp:49:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(IN,"%d%lld",&N,&K);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !