Borderou de evaluare (job #1454802)
Utilizator | Niculae Alexandru Vlad AlexNiuclae | Data | 27 iunie 2015 11:32:50 |
---|---|---|---|
Problema | Overdrive | Status | done |
Runda | Algoritmiada 2015 Runda 3 Juniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void submultimi(int*, std::vector<int>&)’:
user.cpp:28:29: error: ‘sort’ was not declared in this scope
sort(a.begin() , a.end());
^
user.cpp: In function ‘bool check(int)’:
user.cpp:33:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); ++i)
^
user.cpp: In function ‘int main()’:
user.cpp:46:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("overdrive.in","r",stdin);
^
user.cpp:47:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("overdrive.out","w",stdout);
^
user.cpp:49:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:52:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &A[i]);
^
user.cpp:55:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &B[i-(n>>1)]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !