Pagini recente » Borderou de evaluare (job #2581810) | Borderou de evaluare (job #228094) | Borderou de evaluare (job #53298) | Borderou de evaluare (job #771397) | Borderou de evaluare (job #2302907)
Borderou de evaluare (job #2302907)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:20:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(a[i]==k)
^~
main.cpp:22:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
sum+=temp.size();
^~~
main.cpp:24:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<temp.size()&& temp[i]>=n-sum;i++){
~^~~~~~~~~~~~
main.cpp:31:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=s;i<temp.size() && temp2.size();i++){
~^~~~~~~~~~~~
main.cpp:44:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=s+1;i<temp.size();i++){
~^~~~~~~~~~~~
main.cpp:56:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<vec.size();i++)
~^~~~~~~~~~~
main.cpp:10:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("egipt.in","r",stdin);
^
main.cpp:11:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("egipt.out","w",stdout);
^
main.cpp:12:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:14:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Raspuns corect | 10 |
2 | 2ms | 131kb | Raspuns corect | 10 |
3 | 2ms | 131kb | Raspuns corect | 10 |
4 | 2ms | 131kb | Raspuns corect | 10 |
5 | 2ms | 131kb | Raspuns corect | 10 |
6 | 3ms | 131kb | Raspuns corect | 10 |
7 | 3ms | 131kb | Raspuns corect | 10 |
8 | 5ms | 262kb | Raspuns corect | 10 |
9 | 6ms | 262kb | Raspuns corect | 10 |
10 | 7ms | 262kb | Raspuns corect | 10 |
Punctaj total | 100 |