Borderou de evaluare (job #3210373)
Utilizator | Data | 6 martie 2024 09:23:52 | |
---|---|---|---|
Problema | Scara 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:11: error: redefinition of 'int N'
10 | int H, N, N, P, v[NMAX+1], sol[NMAX+1];
| ^
main.cpp:10:8: note: 'int N' previously declared here
10 | int H, N, N, P, v[NMAX+1], sol[NMAX+1];
| ^
main.cpp: In function 'void calcEfMin()':
main.cpp:18:22: error: 'M' was not declared in this scope
18 | while (sum > M) sum -= v[++j];
| ^
main.cpp:14:28: warning: unused variable 'i' [-Wunused-variable]
14 | int j = 0, sum = v[1], i;
| ^
main.cpp: In function 'void backTracking(int, int)':
main.cpp:31:35: error: 'M' was not declared in this scope
31 | for (int i=v[k-1] + 1; i<=M && sum+i <= H; i++) {
| ^
main.cpp:33:31: error: 's' was not declared in this scope
33 | backTracking(k+1, s+i);
| ^
main.cpp: In function 'int main()':
main.cpp:45:20: error: 'M' was not declared in this scope
45 | f >> H >> N >> M >> P;
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !