Pagini recente » Borderou de evaluare (job #2968360) | Borderou de evaluare (job #670704) | Borderou de evaluare (job #2285692) | Borderou de evaluare (job #1310) | Borderou de evaluare (job #1298565)
Borderou de evaluare (job #1298565)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:10:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=]
scanf("%d%d\n",n,m);
^
user.cpp:10:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=]
user.cpp:17:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",Sum);
^
user.cpp:7:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("distancesum.in","r",stdin);
^
user.cpp:8:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("distancesum.out","w",stdout);
^
user.cpp:10:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",n,m);
^
user.cpp:11:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for (int i=1;i<=n;++i) scanf("%i%i\n",x+i,y+i);
^
user.cpp:14:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%i%i\n",&a,&b);
^
user.cpp:10:24: warning: ‘n’ is used uninitialized in this function [-Wuninitialized]
scanf("%d%d\n",n,m);
^
user.cpp:10:24: warning: ‘m’ is used uninitialized in this function [-Wuninitialized]
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 392kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 388kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 392kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 396kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 388kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 396kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 392kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 396kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 396kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 388kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |