Problem maximum
User ChessyBoy
Submission Time 2024-04-05 14:58:16
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp: In function ‘int main()’:
maximum.cpp:10:15: error: no matching function for call to ‘getline(int, long long int&, long long int&)’
10 | getline(1,c,a);
| ^
In file included from /usr/include/stdio.h:864,
from /usr/include/c++/9/cstdio:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:46,
from maximum.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: candidate: ‘__ssize_t getline(char**, size_t*, FILE*)’ <near match>
118 | getline (char **__lineptr, size_t *__n, FILE *__stream)
| ^~~~~~~
/usr/include/x86_64-linux-gnu/bits/stdio.h:118:1: note: conversion of argument 3 would be ill-formed:
maximum.cpp:10:14: error: invalid conversion from ‘long long int’ to ‘FILE*’ {aka ‘_IO_FILE*’} [-fpermissive]
10 | getline(1,c,a);
| ^
| |
| long long int
In file incl