Borderou de evaluare (job #2973137)
Utilizator | Data | 31 ianuarie 2023 09:11:01 | |
---|---|---|---|
Problema | Cerere | Status | done |
Runda | Teme Pregatire ACM Unibuc 2013 | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:11: error: expected ']' before numeric constant
5 | int help[N 1],n,timp[N 1];
| ^~
| ]
main.cpp:6:17: error: expected ']' before numeric constant
6 | vector <int> L[N 1];
| ^~
| ]
main.cpp: In function 'void dfs(int)':
main.cpp:18:9: error: 'help' was not declared in this scope
18 | if (help[x] == 0)
| ^~~~
main.cpp:19:9: error: 'timp' was not declared in this scope; did you mean 'time'?
19 | timp[x] = 0;
| ^~~~
| time
main.cpp:22:9: error: 'timp' was not declared in this scope; did you mean 'time'?
22 | timp[x] = timp[coada[coada.size()-1-help[x]]] 1;
| ^~~~
| time
main.cpp:24:18: error: 'L' was not declared in this scope
24 | for (int y : L[x])
| ^
main.cpp: In function 'int main()':
main.cpp:33:12: error: 'n' was not declared in this scope
33 | cin >> n;
| ^
main.cpp:34:25: warning: for increment expression has no effect [-Wunused-value]
34 | for (int i=1; i<=n; i )
| ^
main.cpp:35:16: error: 'help' was not declared in this scope
35 | cin >> help[i];
| ^~~~
main.cpp:36:24: warning: for increment expression has no effect [-Wunused-value]
36 | for (int i=1; i<n; i )
| ^
main.cpp:39:9: error: 'L' was not declared in this scope
39 | L[x].push_back(y);
| ^
main.cpp:42:25: warning: for increment expression has no effect [-Wunused-value]
42 | for (int i=1; i<=n; i )
| ^
main.cpp:43:17: error: 'timp' was not declared in this scope; did you mean 'time'?
43 | cout << timp[i] << ' ';
| ^~~~
| time
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !