Borderou de evaluare (job #1323874)

Utilizator ButnaruButnaru George Butnaru Data 21 ianuarie 2015 16:56:36
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: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?