Borderou de evaluare (job #2693574)
Utilizator | Data | 6 ianuarie 2021 14:24:58 | |
---|---|---|---|
Problema | Battle of the Blackwater | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-32 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:35: error: 'sqrt' was not declared in this scope
lim=(int)sqrt((double)v[i]);
^
main.cpp:7:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
{ freopen("blackwater.in", "r", stdin);
^
main.cpp:8:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("blackwater.out", "w", stdout);
^
main.cpp:10:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:12:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !