CSES - Datatähti 2025 alku - Results
Submission details
Task:Kortit I
Sender:yo_chico1
Submission time:2024-11-04 09:36:27 +0200
Language:C++ (C++11)
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:34:9: error: expected '(' before '}' token
   34 |         }
      |         ^
      |         (
input/code.cpp:31:26: warning: unused variable 'test' [-Wunused-variable]
   31 |         for (const auto& test : tests)
      |                          ^~~~

Code

#include <iostream>
#include <vector>

int main()
{
	int t, n, a, b;
	std::cin >> t;
	std::vector<std::vector<int>> tests;

	for (int i = 0; i < t; i++)
	{
		std::cin >> n >> a >> b;
		std::vector<int> subVec;
		subVec.push_back(n);
		subVec.push_back(a);
		subVec.push_back(b);
		tests.push_back(subVec);
	}

	std::cout << std::endl;
	/*
	for (const auto& test : tests) // Use a range-based for loop for cleaner code
	{
	    for (const auto& value : test) // Output each value in the test case
	    {
	        std::cout << value << ' ';
	    }
	    std::cout << '\n'; // Move to the next line after each test case
	}
	*/
	for (const auto& test : tests)
	{
		if
	}




return 0;
}