Pagini recente » Borderou de evaluare (job #998901) | Borderou de evaluare (job #3042996) | Borderou de evaluare (job #1189967) | Borderou de evaluare (job #957320) | Borderou de evaluare (job #2109552)
Borderou de evaluare (job #2109552)
Raport evaluator
Compilare:
user.cpp: In function ‘long long int slove(long long int, long long int)’:
user.cpp:28:16: warning: unused variable ‘val’ [-Wunused-variable]
long long val=n/k;
^
user.cpp: In function ‘int main()’:
user.cpp:36:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d",&t);
^
user.cpp:39:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d%d",&a,&b);
^
user.cpp:39:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:40:33: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d\n",slove(a,b));
^
user.cpp:33:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cabana.in","r",stdin);
^
user.cpp:34:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cabana.out","w",stdout);
^
user.cpp:36:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:39:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&a,&b);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | Depăşit | 8072kb | Time limit exceeded. | 0 |
Punctaj total | 0 |