Borderou de evaluare (job #1323859)
Utilizator | Data | 21 ianuarie 2015 16:52:06 | |
---|---|---|---|
Problema | Ghicit | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:40:31: error: incompatible types in assignment of ‘int’ to ‘int [50500]’
for(int i=2;i<=n;i++) logg=logg[i/2]+1;
^
user.cpp:43:13: error: incompatible types in assignment of ‘char [50500]’ to ‘int [50500]’
p[0]=sir;
^
user.cpp:44:11: error: request for member ‘poz’ in ‘s’, which is of non-class type ‘suffix [50500]’
s.poz=i;
^
user.cpp:56:41: error: invalid array assignment
if(s[j]==s[j-1]) p[s[j].poz]=p[s[j-1].poz];
^
user.cpp:57:29: error: incompatible types in assignment of ‘int’ to ‘int [50500]’
else p[s[j].poz]=j;
^
user.cpp:61:20: error: request for member ‘poz’ in ‘s’, which is of non-class type ‘suffix [50500]’
sol-=LCP(s.poz,s[i+1].poz);
^
user.cpp:36:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ghicit.in", "r", stdin);
^
user.cpp:37:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ghicit.out", "w", stdout);
^
user.cpp:38:29: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(sir+1,50500,stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !