Borderou de evaluare (job #2918456)
| Utilizator | Data | 11 august 2022 15:52:36 | |
|---|---|---|---|
| Problema | Tarabe | Status | done |
| Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp:5:13: error: expected ',' or ';' before 'long'
5 | #define int long long
| ^~~~
main.cpp:13:1: note: in expansion of macro 'int'
13 | int a[N + 1], b[N + 1], n, k;
| ^~~
main.cpp: In function 'long long int check(long long int)':
main.cpp:17:22: error: 'n' was not declared in this scope
17 | for(int i = 1; i <= n; i++){
| ^
main.cpp:18:13: error: 'a' was not declared in this scope
18 | if(lim >= a[i])
| ^
main.cpp:19:26: error: 'b' was not declared in this scope
19 | cnt += (lim - a[i]) / b[i] + 1;
| ^
main.cpp:20:12: error: 'k' was not declared in this scope
20 | if(lim > k)
| ^
main.cpp: In function 'int main()':
main.cpp:28:9: error: 'n' was not declared in this scope
28 | fin >> n >> k;
| ^
main.cpp:28:14: error: 'k' was not declared in this scope
28 | fin >> n >> k;
| ^
main.cpp:31:10: error: 'b' was not declared in this scope
31 | fin >> b[i] >> a[i];
| ^
main.cpp:31:18: error: 'a' was not declared in this scope
31 | fin >> b[i] >> a[i];
| ^
main.cpp:44:13: error: 'a' was not declared in this scope
44 | if(Lim >= a[i]){
| ^
main.cpp:45:31: error: 'b' was not declared in this scope
45 | int x = (Lim - 1 - a[i]) / b[i] + 1;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
