Borderou de evaluare (job #2928934)

Utilizator vlad082002Ciocoiu Vlad vlad082002 Data 24 octombrie 2022 11:43:39
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void tarjan(int)': main.cpp:15:14: error: reference to 'tm' is ambiguous 15 | low[x] = tm[x] = ++idx; | ^~ In file included from /usr/include/time.h:39, from /usr/include/c++/10/ctime:42, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:49, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm' 7 | struct tm | ^~ main.cpp:8:18: note: 'int tm [100005]' 8 | int low[100005], tm[100005], scc[100005], idx, compCnt; | ^~ main.cpp:18:13: error: reference to 'tm' is ambiguous 18 | if(!tm[next]) { // next hasnt been visited yet => it is a child of x | ^~ In file included from /usr/include/time.h:39, from /usr/include/c++/10/ctime:42, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:49, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm' 7 | struct tm | ^~ main.cpp:8:18: note: 'int tm [100005]' 8 | int low[100005], tm[100005], scc[100005], idx, compCnt; | ^~ main.cpp:22:34: error: reference to 'tm' is ambiguous 22 | low[x] = min(low[x], tm[next]); | ^~ In file included from /usr/include/time.h:39, from /usr/include/c++/10/ctime:42, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:49, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm' 7 | struct tm | ^~ main.cpp:8:18: note: 'int tm [100005]' 8 | int low[100005], tm[100005], scc[100005], idx, compCnt; | ^~ main.cpp:28:18: error: reference to 'tm' is ambiguous 28 | if(low[x] == tm[x]) { | ^~ In file included from /usr/include/time.h:39, from /usr/include/c++/10/ctime:42, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:49, from main.cpp:1: /usr/include/x86_64-linux-gnu/bits/types/struct_tm.h:7:8: note: candidates are: 'struct tm' 7 | struct tm | ^~ Non zero exit status: 1

Ceva nu functioneaza?