Borderou de evaluare (job #2954459)
Utilizator | Data | 14 decembrie 2022 13:04:49 | |
---|---|---|---|
Problema | Spiridusi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:15: error: variable 'std::ifstream fin' has initializer but incomplete type
9 | ifstream fin ("spiridusi.in");
| ^
main.cpp:10:15: error: variable 'std::ofstream fout' has initializer but incomplete type
10 | ofstream fout ("spiridusi.out");
| ^
main.cpp:19:38: error: redefinition of 'int nod'
19 | static inline int query(int nod, int nod){
| ~~~~^~~
main.cpp:19:29: note: 'int nod' previously declared here
19 | static inline int query(int nod, int nod){
| ~~~~^~~
main.cpp: In function 'int query(int)':
main.cpp:21:1: warning: no return statement in function returning non-void [-Wreturn-type]
21 | }
| ^
main.cpp: At global scope:
main.cpp:23:1: error: 'vector' does not name a type
23 | vector <int> edge[MAX_N];
| ^~~~~~
main.cpp: In function 'void set_parents(int, int, int)':
main.cpp:29:20: error: 'edge' was not declared in this scope
29 | for(auto nxt : edge[crt])
| ^~~~
main.cpp: At global scope:
main.cpp:42:1: error: 'queue' does not name a type
42 | queue <int> q;
| ^~~~~
main.cpp: In function 'void solve(int, int)':
main.cpp:45:5: error: 'q' was not declared in this scope
45 | q.push(crt);
| ^
main.cpp:47:11: error: 'total' was not declared in this scope
47 | while(total > limit){
| ^~~~~
main.cpp:55:20: error: 'edge' was not declared in this scope
55 | for(auto nxt : edge[crt])
| ^~~~
main.cpp: In function 'int main()':
main.cpp:71:9: error: 'edge' was not declared in this scope
71 | edge[x].emplace_back(y);
| ^~~~
main.cpp:85:27: error: 'INT_MAX' was not declared in this scope
85 | minimum[i-1][0] = INT_MAX;
| ^~~~~~~
main.cpp:5:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
4 | #include <map>
+++ |+#include <climits>
5 | #pragma GCC optimize ("O3")
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !