Borderou de evaluare (job #1356244)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:31:16: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld",&n);
^
user.cpp:32:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
for(i=1;i<=n;i++){scanf("%ld",&s[i]);}
^
user.cpp:36:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%ld%ld",&x,&y);
^
user.cpp:36:23: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘int*’ [-Wformat=]
user.cpp:42:16: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld",m);
^
user.cpp:29:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("asmax.in","r",stdin);
^
user.cpp:30:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("asmax.out","w",stdout);
^
user.cpp:31:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld",&n);
^
user.cpp:32:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++){scanf("%ld",&s[i]);}
^
user.cpp:36:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%ld%ld",&x,&y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 12ms | 660kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 280kb | Incorect | 0 |
3 | 0ms | 276kb | Incorect | 0 |
4 | 0ms | 276kb | Incorect | 0 |
5 | 0ms | 272kb | OK | 10 |
6 | 0ms | 284kb | Incorect | 0 |
7 | 4ms | 552kb | Incorect | 0 |
8 | 12ms | 660kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 12ms | 668kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 12ms | 664kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 10 |