Borderou de evaluare (job #3300859)
Utilizator | Data | 19 iunie 2025 15:15:39 | |
---|---|---|---|
Problema | Componente tare conexe | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:17: error: 'int time' redeclared as different kind of entity
7 | int n, m, x, y, time, nr;
| ^~~~
In file included from /usr/include/pthread.h:23,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr-default.h:35,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/gthr.h:148,
from /usr/include/c++/12.2.1/ext/atomicity.h:35,
from /usr/include/c++/12.2.1/bits/ios_base.h:39,
from /usr/include/c++/12.2.1/ios:42,
from /usr/include/c++/12.2.1/istream:38,
from /usr/include/c++/12.2.1/fstream:38,
from main.cpp:1:
/usr/include/time.h:76:15: note: previous declaration 'time_t time(time_t*)'
76 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
main.cpp: In function 'void dfs(int)':
main.cpp:13:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
13 | for(int i=0;i<L[nod].size();i++){
| ~^~~~~~~~~~~~~~
main.cpp: In function 'void dfs2(int)':
main.cpp:25:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i=0;i<L2[nod].size();i++){
| ~^~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:53:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
53 | for(int j=0;j<comp[i].size();j++)
| ~^~~~~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !