Pagini recente » Borderou de evaluare (job #1471105) | Borderou de evaluare (job #142674) | Borderou de evaluare (job #1479366) | Borderou de evaluare (job #1845429) | Borderou de evaluare (job #1691324)
Borderou de evaluare (job #1691324)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:3:180: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
using namespace std;ifstream fin("palindrom2.in");ofstream fout("palindrom2.out");int i,z,k;char s[1001],x[1001],y[1001];bool b=0;int main(){fin.getline(s,1000);for(i=0;i<strlen(s);i++)fout<<s[i];while(!b){z++;k=strlen(s)-z-1;for(i=0;i<strlen(s);i++)x[i]='\000',y[i]='\000';for(i=z;i<strlen(s);i++){y[i-z]=s[i];x[k--]=s[i];}if(!strcmp(y,x)){b=1;break;}}for(i=z-1;i>=0;i--)fout<<s[i];return 0;}
^
user.cpp:3:245: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
using namespace std;ifstream fin("palindrom2.in");ofstream fout("palindrom2.out");int i,z,k;char s[1001],x[1001],y[1001];bool b=0;int main(){fin.getline(s,1000);for(i=0;i<strlen(s);i++)fout<<s[i];while(!b){z++;k=strlen(s)-z-1;for(i=0;i<strlen(s);i++)x[i]='\000',y[i]='\000';for(i=z;i<strlen(s);i++){y[i-z]=s[i];x[k--]=s[i];}if(!strcmp(y,x)){b=1;break;}}for(i=z-1;i>=0;i--)fout<<s[i];return 0;}
^
user.cpp:3:293: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
using namespace std;ifstream fin("palindrom2.in");ofstream fout("palindrom2.out");int i,z,k;char s[1001],x[1001],y[1001];bool b=0;int main(){fin.getline(s,1000);for(i=0;i<strlen(s);i++)fout<<s[i];while(!b){z++;k=strlen(s)-z-1;for(i=0;i<strlen(s);i++)x[i]='\000',y[i]='\000';for(i=z;i<strlen(s);i++){y[i-z]=s[i];x[k--]=s[i];}if(!strcmp(y,x)){b=1;break;}}for(i=z-1;i>=0;i--)fout<<s[i];return 0;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 388kb | OK | 10 |
2 | 0ms | 388kb | OK | 10 |
3 | 0ms | 384kb | OK | 10 |
4 | 0ms | 384kb | OK | 10 |
5 | 0ms | 392kb | OK | 10 |
6 | 0ms | 384kb | OK | 10 |
7 | 0ms | 384kb | OK | 10 |
8 | 0ms | 384kb | OK | 10 |
9 | 0ms | 384kb | OK | 10 |
10 | 0ms | 388kb | OK | 10 |
Punctaj total | 100 |