Borderou de evaluare (job #2245520)
Utilizator | Data | 25 septembrie 2018 13:22:36 | |
---|---|---|---|
Problema | Tcast | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:44:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < g[x].size(); i++)
~~^~~~~~~~~~~~~
user.cpp:48:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(s = i = 0; i < g[x].size(); i++)
~~^~~~~~~~~~~~~
user.cpp:58:12: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
k = i+j+1>>1;
~~~^~
user.cpp: In function ‘int solve()’:
user.cpp:73:13: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
mid = le+ri>>1;
~~^~~
user.cpp: In function ‘int main()’:
user.cpp:104:15: error: ‘gets’ was not declared in this scope
gets(ma[i]);
^
user.cpp:87:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tcast.in","r",stdin);
^
user.cpp:88:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&t);
^
user.cpp:94:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:101:13: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf(" ");
^
user.cpp:107:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tcast.out","w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !