Borderou de evaluare (job #2060394)
Utilizator | Data | 8 noiembrie 2017 10:33:11 | |
---|---|---|---|
Problema | Cobai | 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:53:10: error: found ‘:’ in nested-name-specifier, expected ‘::’
for(c:dir)
^
user.cpp:53:9: error: ‘c’ is not a class, namespace, or enumeration
for(c:dir)
^
user.cpp:53:14: error: expected ‘;’ before ‘)’ token
for(c:dir)
^
user.cpp:81:1: error: expected primary-expression at end of input
}
^
user.cpp:81:1: error: expected ‘;’ at end of input
user.cpp:81:1: error: expected primary-expression at end of input
user.cpp:81:1: error: expected ‘)’ at end of input
user.cpp:81:1: error: expected statement at end of input
user.cpp:52:9: warning: unused variable ‘d’ [-Wunused-variable]
int d;
^
user.cpp:81:1: error: expected ‘}’ at end of input
}
^
user.cpp:19:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cobai.in","r",stdin);
^
user.cpp:20:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cobai.out","w",stdout);
^
user.cpp:21:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &dm);
^
user.cpp:26:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n%c",&c);
^
user.cpp:37:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&c);
^
user.cpp:50:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("\n");
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !