Borderou de evaluare (job #1219489)

Utilizator atatomirTatomir Alex atatomir Data 14 august 2014 13:08:17
Problema Vase Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 17

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:47:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d %c",&x,&op); ^ user.cpp:58:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<D.size();i++) a.push_back(D[i]); ^ user.cpp:60:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%I64d\n",sum); ^ user.cpp:62:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<a.size();i++){ ^ user.cpp:75:78: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%I64d %c\n%I64d %c\n",start.pos,start.op,stop.pos,stop.op); ^ user.cpp:75:78: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long long int’ [-Wformat=] user.cpp:42:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vase.in","r",stdin); ^ user.cpp:43:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("vase.out","w",stdout); ^ user.cpp:45:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld\n",&n); ^ user.cpp:47:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d %c",&x,&op); ^ user.cpp:55:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&targ); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
176ms2116kbRaspuns gresit0
20ms460kbPrimul numar corect1
3120ms2116kbRaspuns gresit0
4124ms2108kbRaspuns gresit0
50ms460kbPrimul numar corect1
60ms464kbPrimul numar corect1
70ms456kbPrimul numar corect1
80ms464kbPrimul numar corect1
940ms1332kbPrimul numar corect1
1044ms1328kbPrimul numar corect1
110ms512kbPrimul numar corect1
1288ms1960kbPrimul numar corect1
1384ms1932kbPrimul numar corect1
140ms512kbPrimul numar corect1
150ms456kbPrimul numar corect1
160ms460kbPrimul numar corect1
17108ms2116kbPrimul numar corect1
18104ms2104kbPrimul numar corect1
1972ms1976kbPrimul numar corect1
200ms456kbPrimul numar corect1
Punctaj total17

Ceva nu functioneaza?