Pagini recente » Borderou de evaluare (job #1583943) | Borderou de evaluare (job #2532002) | Borderou de evaluare (job #1622559) | Borderou de evaluare (job #1821342) | Borderou de evaluare (job #2354663)
Borderou de evaluare (job #2354663)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:29:13: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
else
^~~~
main.cpp:35:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'else'
inc=1;
^~~
main.cpp:37:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(inc<=sf&&ok==-1)
~~^~~~
main.cpp:42:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((coada[inc]*10+2)%p==n)
~~~~~~~~~~~~~~~~~~~^~~
main.cpp:50:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((coada[inc]*10+3)%p==n&&ok==-1)
~~~~~~~~~~~~~~~~~~~^~~
main.cpp:50:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((coada[inc]*10+3)%p==n&&ok==-1)
~~^~~~
main.cpp:58:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((coada[inc]*10+5)%p==n&&ok==-1)
~~~~~~~~~~~~~~~~~~~^~~
main.cpp:58:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((coada[inc]*10+5)%p==n&&ok==-1)
~~^~~~
main.cpp:66:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((coada[inc]*10+7)%p==n&&ok==-1)
~~~~~~~~~~~~~~~~~~~^~~
main.cpp:66:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if((coada[inc]*10+7)%p==n&&ok==-1)
~~^~~~
main.cpp:11:33: 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);
^
main.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.out","w",stdout);
^
main.cpp:13:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
main.cpp:16:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&p);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1257ms | 34078kb | OK | 100 |
Punctaj total | 100 |