Borderou de evaluare (job #2547216)
Utilizator | Data | 15 februarie 2020 10:09:25 | |
---|---|---|---|
Problema | Cufar | 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:8:28: error: 'srdout' was not declared in this scope
freopen("cufar.out", "w", srdout);
^~~~~~
main.cpp:10:15: warning: unused variable 'v' [-Wunused-variable]
int p, k, n, v[1000005];
^
main.cpp:7:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("cufar.in", "r", stdin);
^
main.cpp:11:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &p, &n);
^
main.cpp:15:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &k);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !