Problem fatty
User Dubidubidaphdaph
Submission Time 2026-06-24 11:11:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
fatty.cpp: In function ‘int main()’:
fatty.cpp:9:8: error: expected ‘;’ before ‘type’
9 | unique type = 0;
| ^~~~~
| ;
fatty.cpp:9:17: error: statement cannot resolve address of overloaded function
9 | unique type = 0;
| ^
fatty.cpp:11:7: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘std::vector<long long int>’)
11 | cin >> c[i];
| ~~~ ^~ ~~~~
| | |
| | std::vector<long long int>
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from fatty.c