Borderou de evaluare (job #2232473)
Utilizator | Data | 19 august 2018 15:02:11 | |
---|---|---|---|
Problema | Sum | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void euler()’:
user.cpp:9:25: error: ‘n’ was not declared in this scope
for(int i = 1; i <= n; i++) eul[i] = i;
^
user.cpp:10:25: error: ‘n’ was not declared in this scope
for(int i = 2; i <= n; i++)
^
user.cpp: In function ‘int main()’:
user.cpp:18:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.in", "r", stdin);
^
user.cpp:19:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sum.out", "w", stdout);
^
user.cpp:22:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", &n);
^
user.cpp:25:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !