Borderou de evaluare (job #2372800)

Utilizator bogdi1bogdan bancuta bogdi1 Data 7 martie 2019 11:10:34
Problema Sosete Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 90

Raport evaluator

Compilare: main.cpp: In function 'long long int scad(long long int*, long long int, long long int*)': main.cpp:23:5: warning: this 'while' clause does not guard... [-Wmisleading-indentation] while(tr && c[0]>0) ^~~~~ main.cpp:25:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'while' tr/=10; ^~ main.cpp:26:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'long long int inmult(long long int*, long long int, long long int*)': main.cpp:40:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'long long int adun(long long int*, long long int*, long long int*)': main.cpp:54:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ main.cpp: In function 'void afis(long long int*)': main.cpp:58:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d", a[i]); ^ main.cpp: In function 'int main()': main.cpp:74:32: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] for(i=1; scanf("%1d", &a[i])==1; i++); ^ main.cpp:77:12: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(a[0]==a[1]==1) ~~~~^~~~~~ main.cpp:61:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] { freopen("sosete.in", "r",stdin); ^ main.cpp:62:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("sosete.out", "w",stdout); ^ main.cpp:65:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &ch); ^ main.cpp:68:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &ch); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbIncorect0
32ms131kbOK5
42ms131kbOK5
52ms131kbOK5
62ms131kbOK5
72ms131kbOK5
82ms131kbIncorect0
92ms131kbOK5
102ms131kbOK5
118ms131kbOK5
128ms131kbOK5
138ms131kbOK5
147ms131kbOK5
1518ms131kbOK5
1618ms131kbOK5
1718ms131kbOK5
1818ms131kbOK5
1966ms262kbOK5
2066ms262kbOK5
Punctaj total90

Ceva nu functioneaza?