Borderou de evaluare (job #2408393)
Utilizator | Data | 17 aprilie 2019 21:55:02 | |
---|---|---|---|
Problema | Perioada01 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:32:10: error: found ':' in nested-name-specifier, expected '::'
for (d : dv) {
^
main.cpp:32:8: error: 'd' is not a class, namespace, or enumeration
for (d : dv) {
^
main.cpp:60:3: error: expected primary-expression before 'return'
return 0;
^~~~~~
main.cpp:60:3: error: expected ';' before 'return'
main.cpp:60:3: error: expected primary-expression before 'return'
main.cpp:60:3: error: expected ')' before 'return'
main.cpp:11:19: warning: unused variable 'j' [-Wunused-variable]
int n, p, i, d, j, nr;
^
main.cpp:11:22: warning: unused variable 'nr' [-Wunused-variable]
int n, p, i, d, j, nr;
^~
main.cpp:13:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("perioada01.in", "r", stdin);
^
main.cpp:14:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("perioada01.out", "w", stdout);
^
main.cpp:16:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &n, &p);
^
main.cpp:18:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &a[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !