Borderou de evaluare (job #1234523)
Utilizator | Data | 27 septembrie 2014 15:15:09 | |
---|---|---|---|
Problema | Bool | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool vall(char*&)’:
user.cpp:80:5: error: expected primary-expression before ‘}’ token
} else {
^
user.cpp:80:5: error: expected ‘;’ before ‘}’ token
user.cpp:82:9: error: ‘else’ without a previous ‘if’
else result = val[*p - 'A'];
^
user.cpp: In function ‘int main()’:
user.cpp:102:30: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld", expr(p));
^
user.cpp:90:13: warning: unused variable ‘j’ [-Wunused-variable]
long i, j;
^
user.cpp:92:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bool.in", "r", stdin);
^
user.cpp:93:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bool.out", "w", stdout);
^
user.cpp:94:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s);
^
user.cpp:95:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld\n", &len);
^
user.cpp:96:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(sch);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !