Borderou de evaluare (job #1633371)
Utilizator | Data | 6 martie 2016 12:05:50 | |
---|---|---|---|
Problema | Minlcm | Status | done |
Runda | ONIS 2016, Runda 1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:22:13: error: size of array ‘p’ is too large
int p[lm][lm];
^
user.cpp: In function ‘int main()’:
user.cpp:38:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<l.size(); j++)
^
user.cpp:40:21: error: ‘p’ was not declared in this scope
if(!p[x][l[j]])
^
user.cpp:26:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minlcm.in","r",stdin);
^
user.cpp:27:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("minlcm.out","w",stdout);
^
user.cpp:28:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:32:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:37:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !