Problem topsilver
User King6767
Submission Time 2026-06-26 14:47:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
topsilver.cpp: In function ‘int main()’:
topsilver.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
topsilver.cpp:6:5: note: in expansion of macro ‘int’
6 | int (2) ;cin>> 0;
| ^~~
topsilver.cpp:6:17: error: ambiguous overload for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘int’)
6 | int (2) ;cin>> 0;
| ~~~^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/iostream:40,
from topsilver.cpp:1:
/usr/include/c++/9/istream:120:7: note: candidate: ‘std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_Cha