Borderou de evaluare (job #1336152)
Utilizator | Data | 6 februarie 2015 20:16:12 | |
---|---|---|---|
Problema | Diviz | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:32:42: error: invalid types ‘int[int]’ for array subscript
-w[v[i]][l][((j*10)+v[i])%k]+30103)%30103;
^
user.cpp:33:12: error: ‘W’ was not declared in this scope
W[v[i]][l][((j*10)+v[i])%k]
^
user.cpp:34:41: error: invalid types ‘int[int]’ for array subscript
=(w[v[i]][l][((j*10)+v[i])%k]+a[l-1][j])%30103;
^
user.cpp:36:18: error: ‘W’ was not declared in this scope
memcpy(w,W,sizeof(W));
^
user.cpp:12:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("diviz.in","r",stdin);
^
user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("diviz.out","w",stdout);
^
user.cpp:14:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d\n",&k,&p,&q);
^
user.cpp:15:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(s+1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !