/ Vijos /

记录详情

Compile Error

/in/foo.cc:26:5: error: redefinition of 'int n'
 int n,x;
     ^
/in/foo.cc:2:5: note: 'int n' previously declared here
 int n,x;
     ^
/in/foo.cc:26:7: error: redefinition of 'int x'
 int n,x;
       ^
/in/foo.cc:2:7: note: 'int x' previously declared here
 int n,x;
       ^
/in/foo.cc:27:5: error: redefinition of 'int s'
 int s=0;
     ^
/in/foo.cc:3:5: note: 'int s' previously defined here
 int s=0;
     ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:28:5: error: redefinition of 'int main()'
 int main()
     ^~~~
/in/foo.cc:4:5: note: 'int main()' previously defined here
 int main()
     ^~~~

信息

递交者
类型
自测
题目
P1848 记数问题
语言
C++
递交时间
2017-10-24 23:17:29
评测时间
2017-10-24 23:17:29
评测机
分数
0
总耗时
36ms
峰值内存
3.605 MiB