Borderou de evaluare (job #1763708)

Utilizator UPB_CodeJunkiesUPB NAIDEN NICOLICIOIU COTET UPB_CodeJunkies Data 24 septembrie 2016 15:14:26
Problema Piese3 Status done
Runda ONIS 2016, Runda Finala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void solve()’: user.cpp:87:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(unsigned int i=0;i<nr;i++) ^ user.cpp:89:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<sol[ ind[i] ].size();j++) ^ user.cpp: In function ‘void clear_data()’: user.cpp:97:49: error: no matching function for call to ‘std::vector<int>::swap(std::vector<int> [50005])’ for(int i=0;i<nr;i++) vector<int>().swap(sol); ^ user.cpp:97:49: note: candidate is: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/bits/random.h:34, from /usr/include/c++/4.8/random:50, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/c++/4.8/bits/stl_vector.h:1108:7: note: void std::vector<_Tp, _Alloc>::swap(std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>] swap(vector& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:1108:7: note: no known conversion for argument 1 from ‘std::vector<int> [50005]’ to ‘std::vector<int>&’ user.cpp:106:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<used.size();i++) ^ user.cpp: In function ‘void read()’: user.cpp:26:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&n,&C); ^ user.cpp:32:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&c); ^ user.cpp: In function ‘int main()’: user.cpp:114:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("piese3.in","r",stdin); ^ user.cpp:115:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("piese3.out","w",stdout); ^ user.cpp:117:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&T); ^

Ceva nu functioneaza?