Borderou de evaluare (job #1764430)
Utilizator | Data | 25 septembrie 2016 15:25:15 | |
---|---|---|---|
Problema | Progr2 | Status | done |
Runda | Arhiva ICPC | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int Search_In_Hash(int&, int&)’:
user.cpp:24:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<H[val%MOD].size();i++)
^
user.cpp: In function ‘int main()’:
user.cpp:49:28: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
X=1+Search_In_Hash(v[I]-(v[J]-v[I]),v[J]-v[I]);
^
user.cpp:21:5: error: in passing argument 1 of ‘int Search_In_Hash(int&, int&)’
int Search_In_Hash(int &val,int &ratio)
^
user.cpp:50:26: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
Add_To_Hash(v[I],v[J]-v[I],X);
^
user.cpp:28:6: error: in passing argument 2 of ‘void Add_To_Hash(int&, int&, int&)’
void Add_To_Hash(int &val,int &ratio,int &app)
^
user.cpp:35:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("progr2.in","r",stdin);
^
user.cpp:36:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("progr2.out","w",stdout);
^
user.cpp:38:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
user.cpp:43:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&N);
^
user.cpp:45:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !