Borderou de evaluare (job #2348932)
| Utilizator | Data | 20 februarie 2019 08:54:26 | |
|---|---|---|---|
| Problema | Parcurgere DFS - componente conexe | Status | done |
| Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
| Scor | 0 | ||
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void S(int)':
main.cpp:15:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
int i,d=x>99999?6:x>9999?5:x>999?4:x>99?3:x>9?2:1;
^~~~~
main.cpp:15:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
int i,d=x>99999?6:x>9999?5:x>999?4:x>99?3:x>9?2:1;
^~~~
main.cpp:15:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
int i,d=x>99999?6:x>9999?5:x>999?4:x>99?3:x>9?2:1;
^~~
main.cpp:15:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
int i,d=x>99999?6:x>9999?5:x>999?4:x>99?3:x>9?2:1;
^~
main.cpp:15:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
int i,d=x>99999?6:x>9999?5:x>999?4:x>99?3:x>9?2:1;
^
main.cpp:16:23: error: invalid operands of types 'int [200000]' and 'int' to binary 'operator/'
for(i=d-1;i>=0;x/=10,i--)
^~
main.cpp:16:23: error: in evaluation of 'operator/=(int [200000], int)'
main.cpp:17:17: error: invalid operands of types 'int [200000]' and 'int' to binary 'operator%'
r[l+i]=x%10+48;
~^~~
main.cpp: In function 'int main()':
main.cpp:28:93: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dfs.in","r",stdin),freopen("dfs.out","w",stdout),fread(r,1,L,stdin),n=A(),m=A();
^
main.cpp:28:93: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
main.cpp:28:93: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !
