Pagini recente » Borderou de evaluare (job #887660) | Borderou de evaluare (job #2129041) | Borderou de evaluare (job #15947) | Borderou de evaluare (job #2651101) | Borderou de evaluare (job #1295289)
Borderou de evaluare (job #1295289)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:94:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i < strlen(S)){
^
user.cpp:127:30: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘std::vector<long int>::size_type {aka unsigned int}’ [-Wformat=]
printf("%ld\n",Ans.size());
^
user.cpp:128:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<Ans.size();i++) W[Ans[i]].write();
^
user.cpp: In function ‘void readS()’:
user.cpp:29:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(Buff,1,maxBuf,stdin);
^
user.cpp:39:39: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(Buff,1,maxBuf,stdin);
^
user.cpp: In function ‘int main()’:
user.cpp:89:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mesaje.in","r",stdin);
^
user.cpp:90:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("mesaje.out","w",stdout);
^
user.cpp:92:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
n = 0; gets(S);
^
user.cpp:106:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(Buff,1,maxBuf,stdin);
^
/tmp/ccI6BQyp.o: In function `main':
user.cpp:(.text.startup+0x60): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | Depăşit | 1120kb | Time limit exceeded. | 0 |
2 | 0ms | 420kb | Corect | 10 |
3 | 0ms | 424kb | Corect | 10 |
4 | 0ms | 464kb | Corect | 10 |
5 | 0ms | 428kb | Corect | 10 |
6 | 0ms | 440kb | Corect | 10 |
7 | 4ms | 772kb | Corect | 10 |
8 | Depăşit | 1800kb | Time limit exceeded. | 0 |
9 | 12ms | 1160kb | Corect | 10 |
10 | Depăşit | 1420kb | Time limit exceeded. | 0 |
Punctaj total | 70 |