| Task: | Backpacking |
| Sender: | aalto26am_021 |
| Submission time: | 2026-08-31 16:39:36 +0300 |
| Language: | C++ (C++20) |
| Status: | COMPILE ERROR |
Compiler report
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x1b): undefined reference to `main' collect2: error: ld returned 1 exit status
Code
#include <iostream>
// int main(int argc, char *argv[])
// {
// if (argc != 3)
// return (0);
// int a = std::stoi(argv[1]);
// int b = std::stoi(argv[2]);
// std::cout << (a + b);
// return (0);
// }
void add_two(int a, int b)
{
std::cout << a + b;
}
