Borderou de evaluare (job #2320488)
Utilizator | Data | 14 ianuarie 2019 20:07:48 | |
---|---|---|---|
Problema | Calorifer | 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:60:9: error: redeclaration of 'int ok'
int ok = 1;
^~
main.cpp:42:9: note: 'int ok' previously declared here
int ok = 1;
^~
main.cpp:69:13: error: 'j1' was not declared in this scope
j1 = modulo3(j);
^~
main.cpp:70:13: error: 't1' was not declared in this scope
t1 = modulo3(t);
^~
main.cpp:20:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calorifer.in","r",stdin);
^
main.cpp:21:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
main.cpp:23:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
main.cpp:37:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calorifer.out","w",stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !