Pagini recente » Borderou de evaluare (job #1403549) | Borderou de evaluare (job #2974239) | Borderou de evaluare (job #327942) | Borderou de evaluare (job #893636) | Borderou de evaluare (job #1406184)
Borderou de evaluare (job #1406184)
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 |
1 | Depăşit | 1576kb | Time limit exceeded. | 0 |
Punctaj total | 0 |