Borderou de evaluare (job #1281173)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:28:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if((x*10+2)%P==n) { printf("%d\n",x*10+2); okay=true; }
^
user.cpp:30:57: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if((x*10+k)%P==n) { printf("%d\n",x*10+k); okay=true; break; }
^
user.cpp:12:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre4.in","r",stdin); freopen("cifre4.out","w",stdout);
^
user.cpp:12:69: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cifre4.in","r",stdin); freopen("cifre4.out","w",stdout);
^
user.cpp:14:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&t);
^
user.cpp:18:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld",&n,&P);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2892ms | 17380kb | Incorect | 0 |
Punctaj total | 0 |