Borderou de evaluare (job #1680313)
Utilizator | Data | 8 aprilie 2016 17:26:36 | |
---|---|---|---|
Problema | Subsir crescator maximal | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:22:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < solutions.size(); j++){
^
user.cpp:36:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(solutions[indexMax].size() > vecMax){
^
user.cpp:37:14: error: ‘sz’ was not declared in this scope
vecMax = sz;
^
user.cpp:50:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0; j < solutions.size(); j++)
^
user.cpp:51:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((solutions[j].size() == sz) && (j != indexBig)){
^
user.cpp:58:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < solutions[indexVec].size(); i++)
^
user.cpp:8:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.in", "r", stdin);
^
user.cpp:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("scmax.out","w", stdout);
^
user.cpp:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld ", &n);
^
user.cpp:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld ", &x);
^
user.cpp:18:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld ", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !