Borderou de evaluare (job #1638016)
Utilizator | Data | 7 martie 2016 20:36:45 | |
---|---|---|---|
Problema | Strabunica | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:18: error: expected initializer before ‘m’
unsigned int32_t m[17][200001];
^
user.cpp: In function ‘unsigned int findMin(int, int)’:
user.cpp:18:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(p2[k]<=y-x+1)k++;
^
user.cpp:20:8: error: ‘m’ was not declared in this scope
if(m[k][x]<m[k][y+1-p2[k]])pm=x,ma=m[k][x];
^
user.cpp:24:12: error: ‘m’ was not declared in this scope
if(m[k][pm]>m[k][pm+p2[k]])pm+=p2[k];
^
user.cpp: In function ‘void solve(int, int)’:
user.cpp:34:9: error: ‘m’ was not declared in this scope
if((m[0][pm]*(sf-inc+1))>costm)
^
user.cpp: In function ‘int main()’:
user.cpp:47:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=]
scanf(" %d\n", &n);
^
user.cpp:50:38: error: ‘m’ was not declared in this scope
for(i=1; i<=n; i++) scanf("%d", &m[0][i]);
^
user.cpp:54:16: error: ‘m’ was not declared in this scope
if(m[i-1][j]<=m[i-1][j+p2[i-1]])m[i][j]=m[i-1][j];
^
user.cpp:45:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
{ freopen("strabunica.in","r",stdin);
^
user.cpp:46:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("strabunica.out","w",stdout);
^
user.cpp:47:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" %d\n", &n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !