Borderou de evaluare (job #1553178)
Utilizator | Data | 19 decembrie 2015 12:58:13 | |
---|---|---|---|
Problema | Triopalindrom | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:27: error: expected unqualified-id before ‘,’ token
int n,hash[nmax],pp[nmax];,nr
^
user.cpp:9:1: error: expected constructor, destructor, or type conversion before ‘char’
char s[nmax];
^
user.cpp: In function ‘int value(int, int)’:
user.cpp:13:10: error: ‘uhash’ was not declared in this scope
int sol=uhash[dr]-(1LL*uhash[st-1]*pp[dr-st+1])%mod;
^
user.cpp: In function ‘int main()’:
user.cpp:21:7: error: ‘s’ was not declared in this scope
gets(s+1); n=strlen(s+1);
^
user.cpp:22:2: error: ‘uhash’ was not declared in this scope
uhash[0]=pp[0]=1;
^
user.cpp:28:49: error: ‘nr’ was not declared in this scope
if (value(j+i,j+3*i-1)==value(j,j+2*i-1)) nr++;
^
user.cpp:30:14: error: ‘nr’ was not declared in this scope
printf("%d",nr);
^
user.cpp:19:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triopalindrom.in","r",stdin);
^
user.cpp:20:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triopalindrom.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !