Borderou de evaluare (job #1352151)

Utilizator corul_barbatescUNIBUC Kira96 lockmihai corul_barbatesc Data 21 februarie 2015 12:05:38
Problema Por Costel si Pinball Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int dpkt(int)’: user.cpp:107:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int wpkt(int)’: user.cpp:114:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘void modify(int, int)’: user.cpp:20:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] #define sz size() ^ user.cpp:15:31: note: in definition of macro ‘FOR’ #define FOR(i,v)for(int i=0;i<v;i++) ^ user.cpp:153:11: note: in expansion of macro ‘sz’ FOR(ii,v.sz) ^ user.cpp: In function ‘int main()’: user.cpp:215:8: warning: unused variable ‘typ’ [-Wunused-variable] char typ[3]; ^ user.cpp:175:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pinball.in", "r", stdin); ^ user.cpp:176:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pinball.out", "w", stdout); ^ user.cpp:35:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] #define CZ(x) scanf("%d",&(x)); ^ user.cpp:178:6: note: in expansion of macro ‘CZ’ CZ(n); ^ user.cpp:35:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] #define CZ(x) scanf("%d",&(x)); ^ user.cpp:181:17: note: in expansion of macro ‘CZ’ REP(i,1,n) CZ(a[i]); ^ user.cpp:35:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] #define CZ(x) scanf("%d",&(x)); ^ user.cpp:182:6: note: in expansion of macro ‘CZ’ CZ(m); ^ user.cpp:219:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&x,&y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms820kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?