Borderou de evaluare (job #2095919)
Utilizator | Data | 28 decembrie 2017 13:19:25 | |
---|---|---|---|
Problema | Int | Status | done |
Runda | 28_dec_2017_9 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:28:9: error: ‘j’ was not declared in this scope
for(j=1; j<=n; j++)
^
user.cpp:31:9: error: ‘rez’ was not declared in this scope
rez=1;
^
user.cpp:40:21: error: ‘s’ cannot be used as a function
s = s(s, rez);
^
user.cpp:22:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("int.in", "r", stdin);
^
user.cpp:23:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("int.out", "w", stdout);
^
user.cpp:24:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:26:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &v[i].a, &v[i].b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !