Borderou de evaluare (job #1711986)
Utilizator | Data | 1 iunie 2016 19:03:14 | |
---|---|---|---|
Problema | Coach | 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:44:14: error: found ‘:’ in nested-name-specifier, expected ‘::’
for (low : help) {
^
user.cpp:44:10: error: ‘low’ is not a class, namespace, or enumeration
for (low : help) {
^
user.cpp:44:20: error: expected ‘;’ before ‘)’ token
for (low : help) {
^
user.cpp:75:1: error: expected primary-expression at end of input
}
^
user.cpp:75:1: error: expected ‘;’ at end of input
user.cpp:75:1: error: expected primary-expression at end of input
user.cpp:75:1: error: expected ‘)’ at end of input
user.cpp:75:1: error: expected statement at end of input
user.cpp:75:1: error: expected ‘}’ at end of input
user.cpp:26:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("coach.in", "r", stdin);
^
user.cpp:27:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("coach.out", "w", stdout);
^
user.cpp:29:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &m, &T);
^
user.cpp:30:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (i = 1; i <= n; i++) scanf("%d", &ener[i]), help.pb(ener[i]);
^
user.cpp:37:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &x, &y, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !