QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#758239#6517. Computational GeometryHuangHanShengCompile Error//C++232.2kb2024-11-17 17:03:062024-11-17 17:03:08

详细

answer.code: In function ‘int main()’:
answer.code:94:36: error: redeclaration of ‘long long int cross’
   94 |                                 ll cross = (x[j] - x[i]) * (y[k] - y[i]) - (y[j] - y[i]) * (x[k] - x[i]);
      |                                    ^~~~~
answer.code:88:36: note: ‘long long int cross’ previously declared here
   88 |                                 ll cross = (x[j] - x[i]) * (y[k] - y[i]) - (y[j] - y[i]) * (x[k] - x[i]);
      |                                    ^~~~~
answer.code:49:24: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   49 |                 freopen(task".inp","r",stdin);
      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
answer.code:50:24: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   50 |                 freopen(task".out","w",stdout);
      |                 ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~