Borderou de evaluare (job #2526146)
Utilizator | Data | 18 ianuarie 2020 12:07:10 | |
---|---|---|---|
Problema | Ksecv4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'bool check(int, long long int)':
main.cpp:19:17: error: 'k' was not declared in this scope
if (ans > k)
^
main.cpp: In function 'int main()':
main.cpp:42:24: error: too many arguments to function 'bool check(int, long long int)'
if (check(n, mid, k)) {
^
main.cpp:10:6: note: declared here
bool check(int n, long long val) {
^~~~~
main.cpp:27:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ksecv4.in", "r", stdin);
^
main.cpp:28:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("ksecv4.out", "w", stdout);
^
main.cpp:31:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &n, &k, &m);
^
main.cpp:33:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &a[i]);
^
main.cpp:35:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &b[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !