Borderou de evaluare (job #1192903)
Utilizator | Data | 29 mai 2014 23:47:05 | |
---|---|---|---|
Problema | Jstc | 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:40:10: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
if(L[mij] <= rez) p = mij + 1;
^
user.cpp:40:24: error: ‘p’ was not declared in this scope
if(L[mij] <= rez) p = mij + 1;
^
user.cpp:41:11: error: ‘u’ was not declared in this scope
else u = mij - 1;
^
user.cpp:44:9: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
if(L[mij] > rez) mij--;
^
user.cpp:46:13: error: no match for ‘operator[]’ (operand types are ‘std::list<int>’ and ‘int’)
sol += L[mij];
^
user.cpp:10:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("jstc.in", "r", stdin);
^
user.cpp:11:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("jstc.out", "w", stdout);
^
user.cpp:12:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:13:24: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(ax, 1, 1, stdin);
^
user.cpp:14:26: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(ax, 1, DIM, stdin);
^
user.cpp:53:51: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if(++pz == DIM) fread(ax, 1, DIM, stdin), pz = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !