Borderou de evaluare (job #2023045)
Utilizator | Data | 18 septembrie 2017 09:15:42 | |
---|---|---|---|
Problema | Stramosi | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:44: error: ‘int index’ redeclared as different kind of symbol
int dp[20][N], n, m, a, i, j, p, q, power, index, aux;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘int main()’:
user.cpp:23:26: error: overloaded function with no contextual type information
power = 1; index = 0;
^
user.cpp:27:18: error: no post-increment operator for type
index++;
^
user.cpp:30:14: error: no post-decrement operator for type
index--;
^
user.cpp:31:21: error: invalid types ‘int [20][250001][<unresolved overloaded function type>]’ for array subscript
a = dp[index][q];
^
user.cpp:12:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1, "%d%d", &n, &m);
^
user.cpp:14:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1, "%d", &dp[0][i]);
^
user.cpp:22:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f1, "%d%d", &q, &p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !