Borderou de evaluare (job #1406184)

Utilizator 2ratatisi0.5Echipa ONIS 2ratatisi0.5 Data 29 martie 2015 16:34:50
Problema Secv10 Status done
Runda ONIS 2015, Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘std::vector<int> KMP(std::string, std::string)’: user.cpp:23:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 1; i <= K.size(); i++) ^ user.cpp:32:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(sp < S.size()) ^ user.cpp:34:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(kp != -1 && (kp == K.size() || K[kp] != S[sp])) kp = T[kp]; ^ user.cpp:37:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(kp == K.size()) matches.push_back(sp - K.size()); ^ user.cpp: In function ‘int main()’: user.cpp:47:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[100005]’ [-Wformat=] fscanf(f1,"%s",&s); ^ user.cpp:48:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[100005]’ [-Wformat=] fscanf(f1,"%s",&a); ^ user.cpp:49:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[100005]’ [-Wformat=] fscanf(f1,"%s",&b); ^ user.cpp:51:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<matches.size();j++)test1[matches[j]]=1; ^ user.cpp:53:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<matches.size();j++)test2[matches[j]]=2; ^ user.cpp:55:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<strlen(s);j++) ^ user.cpp:61:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<strlen(s);j++)test1[j]=test2[j]=0; ^ user.cpp:44:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%d",&t); ^ user.cpp:47:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%s",&s); ^ user.cpp:48:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%s",&a); ^ user.cpp:49:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f1,"%s",&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit1576kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?