Borderou de evaluare (job #1680297)

Utilizator Player1Player 1 Player1 Data 8 aprilie 2016 17:17:15
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:21:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < solutions.size(); j++){ ^ user.cpp:34:34: error: ‘nums’ was not declared in this scope solutions[indexMax].push_back(nums[i]); ^ user.cpp:36:14: error: ‘nums’ was not declared in this scope temp[0] = nums[i]; ^ user.cpp:41:13: error: ‘solution’ was not declared in this scope int sz = solution[indexBig].size(); ^ user.cpp:42:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < solutions.size(); j++) ^ user.cpp:43:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if((solutions[j].size() == sz) && (j != indexBig)) ^ user.cpp:44:6: error: ‘erase’ was not declared in this scope erase solutions[j]; ^ user.cpp:44:12: error: expected ‘;’ before ‘solutions’ erase solutions[j]; ^ user.cpp:47:54: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < solutions[solutions.size() - 1].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:17:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld ", &x); ^

Ceva nu functioneaza?