Borderou de evaluare (job #1600766)
Utilizator | Data | 15 februarie 2016 13:17:56 | |
---|---|---|---|
Problema | Pluton | 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:27:21: warning: variable ‘b’ set but not used [-Wunused-but-set-variable]
int k=1,b[100][100],l=0,nr=0;
^
user.cpp:51:5: error: ‘b’ was not declared in this scope
b[0][l]=nr;
^
user.cpp:51:10: error: ‘l’ was not declared in this scope
b[0][l]=nr;
^
user.cpp:51:13: error: ‘nr’ was not declared in this scope
b[0][l]=nr;
^
user.cpp:18:19: warning: unused variable ‘k’ [-Wunused-variable]
int n,a[4000],k;
^
user.cpp:20:9: warning: unused variable ‘nrplutoane’ [-Wunused-variable]
int nrplutoane=n;
^
user.cpp:16:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pluton.in", "r", stdin);
^
user.cpp:17:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pluton.out", "w", stdout);
^
user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:22:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &a[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !