Borderou de evaluare (job #1323885)
Utilizator | Data | 21 ianuarie 2015 17:01:50 | |
---|---|---|---|
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: warning: left operand of comma operator has no effect [-Wunused-value]
p[0,i]=sir[i];
^
user.cpp:43:15: error: incompatible types in assignment of ‘char’ to ‘int [50500]’
p[0,i]=sir[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: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 !