Borderou de evaluare (job #1247298)
Utilizator | Data | 22 octombrie 2014 16:40:19 | |
---|---|---|---|
Problema | Texttrim | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:5: error: expected primary-expression before ‘for’
for(i=0;s[i];i++) {
^
user.cpp:12:5: error: expected ‘;’ before ‘for’
user.cpp:12:16: warning: statement has no effect [-Wunused-value]
for(i=0;s[i];i++) {
^
user.cpp:12:21: error: expected ‘;’ before ‘)’ token
for(i=0;s[i];i++) {
^
user.cpp:7:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("texttrim.out","w",stdout);
^
user.cpp:7:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:9:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&b[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !