Borderou de evaluare (job #748107)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Rell's Report | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 28 nov. 2023 18:58:57 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:1: error: 'll' does not name a type
7 | ll a[4];
| ^~
main.cpp:8:1: error: 'll' does not name a type
8 | ll b[4];
| ^~
main.cpp: In function 'bool ok(int, int)':
main.cpp:11:5: error: 'll' was not declared in this scope
11 | ll res=a[1]+a[2]+a[3];
| ^~
main.cpp:15:9: error: 'res' was not declared in this scope
15 | res += (t/b[i]) * a[i];
| ^~~
main.cpp:15:19: error: 'b' was not declared in this scope
15 | res += (t/b[i]) * a[i];
| ^
main.cpp:15:27: error: 'a' was not declared in this scope
15 | res += (t/b[i]) * a[i];
| ^
main.cpp:17:12: error: 'res' was not declared in this scope
17 | return res>=x;
| ^~~
main.cpp: In function 'int main()':
main.cpp:23:16: error: 'a' was not declared in this scope
23 | fin >> a[i] >> b[i];
| ^
main.cpp:23:24: error: 'b' was not declared in this scope
23 | fin >> a[i] >> b[i];
| ^
main.cpp:31:9: error: 'll' was not declared in this scope
31 | ll l=0,r=1000000000;
| ^~
main.cpp:32:15: error: 'l' was not declared in this scope
32 | while(l <= r)
| ^
main.cpp:32:20: error: 'r' was not declared in this scope
32 | while(l <= r)
| ^
main.cpp:34:15: error: expected ';' before 'm'
34 | ll m = (l+r)/2;
| ^~
| ;
main.cpp:35:19: error: 'm' was not declared in this scope
35 | if(ok(m,x))
| ^
main.cpp:41:17: error: 'l' was not declared in this scope
41 | fout << l << "\n";
| ^