Problem samelength
User 2110100
Submission Time 2023-07-28 21:41:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

samelength.cpp: In function ‘int main()’:
samelength.cpp:9:25: error: ‘argv’ was not declared in this scope
9 | FILE* input_file=fopen(argv[1],"r");
| ^~~~
samelength.cpp:15:12: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
15 | printf(jury_length);
| ^~~~~~~~~~~
| |
| int
In file included from /usr/include/stdio.h:867,
from /usr/include/c++/9/cstdio:42,
from samelength.cpp:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:105:32: note: initializing argument 1 of ‘int printf(const char*, ...)’
105 | printf (const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~