Borderou de evaluare (job #2358644)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:85:29: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n",ans.size());
^
main.cpp:86:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0;i<ans.size();++i)
~^~~~~~~~~~~
main.cpp:31:23: warning: unused variable 'ok' [-Wunused-variable]
int k,i,j,x=1,y=1,ok,val,d=0;
^~
main.cpp:31:26: warning: unused variable 'val' [-Wunused-variable]
int k,i,j,x=1,y=1,ok,val,d=0;
^~~
main.cpp:29:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rezervatie.in","r",stdin);
^
main.cpp:30:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("rezervatie.out","w",stdout);
^
main.cpp:33:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n%d\n",&n,&m);
^
main.cpp:36:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%c",&ch);
^
main.cpp:78:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
^
main.cpp:81:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&x,&y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 3ms | 524kb | OK | 10 |
6 | 5ms | 917kb | OK | 10 |
7 | 6ms | 917kb | OK | 10 |
8 | 8ms | 1572kb | OK | 10 |
9 | 2ms | 131kb | OK | 10 |
10 | 7ms | 917kb | OK | 10 |
Punctaj total | 100 |