Borderou de evaluare (job #2607056)
Utilizator | Data | 29 aprilie 2020 09:36:15 | |
---|---|---|---|
Problema | Multisum | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'long long int get(long long int)':
main.cpp:15:23: error: expected primary-expression before '/' token
long long cnt = mx ^/
^
main.cpp:16:3: error: expected primary-expression before 'long'
long long lim = (up - b + 1) / (b * x);
^~~~
main.cpp:17:24: error: 'lim' was not declared in this scope
long long ret = b * (lim + 1) + max(0LL, up - b * x * (lim + 1) + 1);
^~~
main.cpp:15:13: warning: unused variable 'cnt' [-Wunused-variable]
long long cnt = mx ^/
^~~
main.cpp: In function 'int main()':
main.cpp:25:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &a, &b, &q);
^
main.cpp:30:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &l, &r); --l;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !