Borderou de evaluare (job #1618246)
Utilizator | Data | 27 februarie 2016 19:06:09 | |
---|---|---|---|
Problema | Arbxyz | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void DFS2(int, int)’:
user.cpp:39:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < G[tata].size(); ++i)
^
user.cpp:44:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < G[1].size()&&ok; ++i)
^
user.cpp:49:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < G[tata].size(); ++i)
^
user.cpp:53:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < G[1].size()&&ok; ++i)
^
user.cpp:58:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < G[tata].size(); ++i)
^
user.cpp:62:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < G[1].size()&&ok; ++i)
^
user.cpp: In function ‘int main()’:
user.cpp:83:16: error: invalid types ‘int[int]’ for array subscript
b[i][1]=b[i][2]=b[i][3]=0;
^
user.cpp:83:24: error: invalid types ‘int[int]’ for array subscript
b[i][1]=b[i][2]=b[i][3]=0;
^
user.cpp:83:32: error: invalid types ‘int[int]’ for array subscript
b[i][1]=b[i][2]=b[i][3]=0;
^
user.cpp:73:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("arbxyz.in","r",stdin);
^
user.cpp:74:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("arbxyz.out","w",stdout);
^
user.cpp:76:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n",&t);
^
user.cpp:79:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d\n",&N,&x,&y,&z);
^
user.cpp:87:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !