Pagini recente » Borderou de evaluare (job #2621646) | Borderou de evaluare (job #3155709) | Borderou de evaluare (job #3215127) | Borderou de evaluare (job #2626037) | Borderou de evaluare (job #1451205)
Borderou de evaluare (job #1451205)
Raport evaluator
Compilare:
user.cpp: In function ‘std::vector<int> prod(std::vector<int>, std::vector<int>)’:
user.cpp:17:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned i=n/2+1; i<=n; i++) {
^
user.cpp:21:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned i=0; i<=n/2; i++){
^
user.cpp:35:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned i = 0; i<=2*n; i++) rez.push_back(0);
^
user.cpp: In function ‘int main()’:
user.cpp:67:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<rez.size(); i++){
^
user.cpp:50:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bacterii2.in", "r", stdin);
^
user.cpp:51:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("bacterii2.out", "w", stdout);
^
user.cpp:53:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:57:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &na);gra = 0;for(int i=1; i<=na; i++){scanf("%d", &x); vfa[x]++;if(x>gra) gra=x;}
^
user.cpp:57:74: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &na);gra = 0;for(int i=1; i<=na; i++){scanf("%d", &x); vfa[x]++;if(x>gra) gra=x;}
^
user.cpp:58:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nb);grb = 0;for(int i=1; i<=nb; i++){scanf("%d", &x); vfb[x]++;if(x>grb) grb=x;}
^
user.cpp:58:74: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &nb);grb = 0;for(int i=1; i<=nb; i++){scanf("%d", &x); vfb[x]++;if(x>grb) grb=x;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | Depăşit | 2240kb | Time limit exceeded. | 0 |
Punctaj total | 0 |