Borderou de evaluare (job #851796)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Cartier2 (clasa a 8-a) | Compilator | cpp |
| Rundă | lasm_05_02_2026_clasa10_11_lectie | Status | evaluat |
| Dată | 5 feb. 2026 14:25:25 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:1:19: error: stray '#' in program
1 | ultima problema : #include <bits/stdc++.h>
| ^
main.cpp:1:1: error: 'ultima' does not name a type
1 | ultima problema : #include <bits/stdc++.h>
| ^~~~~~
main.cpp:4:1: error: 'ifstream' does not name a type
4 | ifstream fin("balance.in");
| ^~~~~~~~
main.cpp:5:1: error: 'ofstream' does not name a type
5 | ofstream fout("balance.out");
| ^~~~~~~~
main.cpp: In function 'int main()':
main.cpp:8:5: error: 'ios' has not been declared
8 | ios::sync_with_stdio(false);
| ^~~
main.cpp:9:5: error: 'cin' was not declared in this scope
9 | cin.tie(nullptr);
| ^~~
main.cpp:12:5: error: 'fin' was not declared in this scope
12 | fin >> n;
| ^~~
main.cpp:13:5: error: 'vector' was not declared in this scope
13 | vector<int> a(n);
| ^~~~~~
main.cpp:13:12: error: expected primary-expression before 'int'
13 | vector<int> a(n);
| ^~~
main.cpp:15:42: error: 'a' was not declared in this scope
15 | for (int i = 0; i < n; i++) { fin >> a[i]; S += a[i]; }
| ^
main.cpp:18:19: error: expected primary-expression before 'long'
18 | vector<vector<long long>> dp(1 << n, vector<long long>(S + 1, -1));
| ^~~~
main.cpp:20:5: error: 'function' was not declared in this scope; did you mean 'union'?
20 | function<long long(int,int)> solve = [&](int mask, int d) -> long long {
| ^~~~~~~~
| union
main.cpp:20:14: error: expected primary-expression before 'long'
20 | function<long long(int,int)> solve = [&](int mask, int d) -> long long {
| ^~~~
main.cpp:36:5: error: 'fout' was not declared in this scope
36 | fout << solve(0, 0) << "\n";
| ^~~~
main.cpp:36:13: error: 'solve' was not declared in this scope
36 | fout << solve(0, 0) << "\n";
| ^~~~~
main.cpp:17:9: warning: unused variable 'FULL' [-Wunused-variable]
17 | int FULL = (1 << n) - 1;
| ^~~~