Borderou de evaluare (job #2853796)
Utilizator | Data | 20 februarie 2022 17:11:35 | |
---|---|---|---|
Problema | Ninjago | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:2:24: warning: extra tokens at end of #include directive
2 | #include<bits/stdc++.h>#include <iostream>
| ^
main.cpp: In function 'int main()':
main.cpp:61:26: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
61 | for(int j = 0; j < strlen(sequence); j++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp:57:13: warning: unused variable 'sizeOfSequence' [-Wunused-variable]
57 | int sizeOfSequence = strlen(sequence);
| ^~~~~~~~~~~~~~
main.cpp: At global scope:
main.cpp:125:10: error: redefinition of 'std::ifstream fin'
125 | ifstream fin("ninjago.in");
| ^~~
main.cpp:5:10: note: 'std::ifstream fin' previously declared here
5 | ifstream fin("ninjago.in");
| ^~~
main.cpp:126:10: error: redefinition of 'std::ofstream fout'
126 | ofstream fout("ninjago.out");
| ^~~~
main.cpp:6:10: note: 'std::ofstream fout' previously declared here
6 | ofstream fout("ninjago.out");
| ^~~~
main.cpp:127:8: error: redefinition of 'struct vertex'
127 | struct vertex
| ^~~~~~
main.cpp:7:8: note: previous definition of 'struct vertex'
7 | struct vertex
| ^~~~~~
main.cpp:134:8: error: redefinition of 'vertex theArray [32005]'
134 | vertex theArray[32005];
| ^~~~~~~~
main.cpp:14:8: note: 'vertex theArray [32005]' previously declared here
14 | vertex theArray[32005];
| ^~~~~~~~
main.cpp:135:15: error: redefinition of 'std::bitset<32005> isThere'
135 | bitset<32005> isThere;
| ^~~~~~~
main.cpp:15:15: note: 'std::bitset<32005> isThere' previously defined here
15 | bitset<32005> isThere;
| ^~~~~~~
main.cpp:136:8: error: redefinition of 'struct comp'
136 | struct comp
| ^~~~
main.cpp:16:8: note: previous definition of 'struct comp'
16 | struct comp
| ^~~~
main.cpp:146:5: error: redefinition of 'int parent [32005]'
146 | int parent[32005];
| ^~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !