Pagini recente » Borderou de evaluare (job #1562727) | Borderou de evaluare (job #2591734) | Borderou de evaluare (job #822611) | Borderou de evaluare (job #3224862) | Borderou de evaluare (job #1295347)
Borderou de evaluare (job #1295347)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:132: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:133: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:30: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:41: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:91: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:92: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:94:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
n = 0; gets(S);
^
user.cpp:111: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/ccMXjsEn.o: In function `main':
user.cpp:(.text.startup+0x65): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | Depăşit | Memory limit exceeded. | 0 |
2 | 0ms | 460kb | Corect | 10 |
3 | 0ms | 468kb | Corect | 10 |
4 | 0ms | 500kb | Corect | 10 |
5 | 0ms | 472kb | Corect | 10 |
6 | 0ms | 468kb | Corect | 10 |
7 | 0ms | 808kb | Corect | 10 |
8 | 80ms | 1948kb | Corect | 10 |
9 | 4ms | 1168kb | Corect | 10 |
10 | 8ms | 1488kb | Corect | 10 |
Punctaj total | 90 |